go get github.com/alexshemesh/claptrap
cd $GOPATH/src/github.com/alexshemesh/claptrap
We use glide https://github.com/Masterminds/glide to manage dependencies. So download and install it.
After that:
glide up
go test --cover $(go list ./... | grep -v '/vendor/')
mkdir build
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w -X main.Version=1.0.0" -o build/claptrap-linux-amd64
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -ldflags="-s -w -X main.Version=1.0.0" -o build/claptrap-darwin-amd64
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags="-s -w -X main.Version=1.0.0" -o build/claptrap-windows-amd64