get: download, build, and install a Go package

melody get PACKAGE

Similar to go get, this command will download, build, and install a specified Go package. The package will be placed into $GOPATH/src directory, however, unlike go get, its dependencies will be placed into the repo’s vendor subdirectory. This way, we can keep the global $GOPATH/src clean.

It is a convenience method for the following procedure:

git clone https://PACKAGE $GOPATH/src/PACKAGE
cd $GOPATH/src/PACKAGE
melody init
melody update
go install . ./cmd/...