Documentation ¶
Overview ¶
* Hyperscan example program 1: simplegrep * * This is a simple example of Hyperscan's most basic functionality: it will * search a given input file for a pattern supplied as a command-line argument. * It is intended to demonstrate correct usage of the hs_compile and hs_scan * functions of Hyperscan. * * Patterns are scanned in 'DOTALL' mode, which is equivalent to PCRE's '/s' * modifier. This behaviour can be changed by modifying the "flags" argument to * hs_compile. * * Build instructions: * * go build github.com/flier/gohs/examples/simplegrep * * Usage: * * ./simplegrep <pattern> <input file> * * Example: * * ./simplegrep int simplegrep.c *
Click to show internal directories.
Click to hide internal directories.