regexextractor

command module
v0.0.0-...-c714714 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 25, 2018 License: MIT Imports: 8 Imported by: 0

README

Extracting all the Things

The Regex Extractor is a simple HTTP server that will process a text input and provide a simple collection of label subsets that match configured regular expressions.

Usage

Once the application is built, there are two command line flags:

  1. -addr: The address on which the HTTP server will be bound
  2. -file: The CSV containing the labels and patterns

Example:

regexextractor -file ./sample.csv

Example Call:

curl http://localhost:8080 -d 'Bill Gates bill@ms.com'

Example Output:

{"email":["bill@ms.com"],"name":["Bill","Gates"]}

Future Work

  • Use github.com/spf13/cobra to handle command line arguments
  • Update the build to set to embed a version
  • Configure the application to use TLS

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg
web

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL