This is illustration of local build on debian based linux. Note that you need to install gcc and build-essentials for CGO.
apt install gcc build-essentials
Just execute ./run.sh
to build binary from example.go and test it.
To clean up execute ./run.sh --clean