Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (9 sloc) 375 Bytes
# Generate go struct definition from json file
curl http://url.tld/file.json | gojson -name=Repository
# run, test or build while refreshing libraries (good for local changes)
go run -a file.go
# Run a subset of tests
go test -run RegexpStartOfFunctionName
# Cross compile a go binary
GOOS=linux GOARCH=386 CGO_ENABLED=0 go build .