🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

github.com/dpifke/golang-fastmatch

Package Overview
Dependencies
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/dpifke/golang-fastmatch

Source
Go
Version
v0.0.0-20170222002913-6bd661ebeb8c
Version published
Created
Source

pifke.org/fastmatch

GoDoc Build Status Test Coverage

Golang code generation tool for quickly comparing an input string to a set of possible matches, which are known at compile time.

A typical use of this would be generating a "reverse enum", such as in a parser which needs to compare a string to a list of keywords and return the corresponding lexer symbol.

For more information, see the documentation.

Downloading

If you use this library in your own code, please use the canonical URL in your Go code, instead of Github:

go get pifke.org/fastmatch

Or (until I finish setting up the self-hosted repository):

# From the root of your project:
git submodule add https://github.com/dpifke/golang-fastmatch vendor/pifke.org/fastmatch

Then:

import (
        "pifke.org/fastmatch"
)

As opposed to the pifke.org URL, I make no guarantee this Github repository will exist or be up-to-date in the future.

Documentation

Available on godoc.org.

License

Three-clause BSD. See LICENSE.txt.

Contact me if you want to use this code under different terms.

Author

Dave Pifke. My email address is my first name "at" my last name "dot org."

I'm @dpifke on Twitter. My PGP key is available on Keybase.

FAQs

Package last updated on 22 Feb 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts