README
¶
For DPI example application gohs package is required.
Build gohs
-
Install Intel Hyperscan with your package manager. If hyperscan can not be installed from repo, first use instruction below.
-
Download and build gohs package:
go get -v github.com/flier/gohs/hyperscan
Build Hyperscan
-
Download and build Intel Hyperscan library.
git clone https://github.com/intel/hyperscan.git cd hyperscan cmake . && make -j10
-
Set variables:
HSDIR=/path/to/hyperscan export PKG_CONFIG_PATH=$HSDIR export CGO_LDFLAGS="-L$HSDIR/lib -lhs" export CGO_CFLAGS=-I$HSDIR/src
Click to show internal directories.
Click to hide internal directories.