Use go get to download packages and their dependencies, then install them:
go get github.com/golang/lint/golint \
golang.org/x/tools/cmd/goimports
Golint looks for common code style mistakes. Golint makes suggestions for many of the mechanically checkable items listed in Effective Go and the CodeReviewComments wiki page.
goimports formats your code correctly (it’s a drop-in replacement for gofmt) and also removes any unused imports. It will also try to resolve imports that haven’t been added to the imports definition.
The go get command takes the path to the package and expects a version controlled and accessible URL. It then clones the source code into your $GOPATH/src directory ready for you to use in import paths as part of your projects.
# recursively list directories in the first path of GOPATH, with limited depth:
find ${GOPATH%%:*}/src/ -type d -maxdepth 2 | less
https://github.com/RHCloudServices/golang-intro