Measurement Kit bindings for Go. The code in this repository exposes some APIs of Measurement Kit's C++ implementation to Go apps.
Attention this is work on progress and is highly unstable.
Do not use it for anything serious, for the moment.
Install MaxMind databases using:
./script/download-mmdb.sh
Install Measurement Kit using brew:
brew tap measurement-kit/measurement-kit
brew install measurement-kit
If you've already installed measurement-kit
, do:
brew upgrade
to make sure you're on the latest released version.
Then you're all set. Just go get -v ./...
as usual.
Install Measurement Kit using brew:
brew tap measurement-kit/measurement-kit
brew install mingw-w64-measurement-kit
If you've already installed mingw-w64-measurement-kit
, do:
brew upgrade
to make sure you're on the latest released version.
Then you're all set. Because you're cross compiling you need to provide more environment variables to make the build work:
CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++ \
CGO_ENABLED=1 GOOS=windows GOARCH=amd64 go get -v ./...
To test binaries, you can use wine:
wine $GOPATH/bin/windows_amd64/web_connectivity.exe
It is recommended to also test using a real Windows box.
We have a Docker container. Build the container with:
docker build -t gomkbuild .
Enter into the container with:
docker run -it -v`pwd`:/gomkbuild -w/gomkbuild gomkbuild
Then you're all set. Just go get -v ./...
as usual.
See the _examples/
directory.