Install the tokenizers Go bindings
mainTo use the bindings, you must first build the static library libtokenizers.a. Run the following command in the repository root:
make buildWhen running your Go application, you must inform the linker where to find the static library. You can do this in two ways:
Via
go runflags:go run -ldflags="-extldflags '-L./path/to/libtokenizers/directory'" .Via the
CGO_LDFLAGSenvironment variable (recommended): Set this variable to avoid specifying the path every time you run or build your application.CGO_LDFLAGS="-L./path/to/libtokenizers/directory"