Some common Go commands that you should know

  1. go build (see below): builds / compiles your code into a binary or library
  2. go install (see below): the same as go build, plus installs binaries into $GOPATH/bin and libraries to $GOPATH/pkg
  3. go get: downloads source code and dependencies, then perform a go install
  4. go test (see below): compile and run tests in the given package(s)
  5. go vet: check code for common coding errors

https://github.com/RHCloudServices/golang-intro


See also