What is the best practice to install packages (those with go get...) in a local directory?
go get...
Example: I\'d like to try out the Revel web framework, but I don\
In modern module enabled go (introduced in go 1.11), you can use the gobin program with a GOBIN env var specifying the destination of the binary:
GOBIN=./local gobin github.com/robfig/revel
Installation of gobin is done like so:
GO111MODULE=off go get -u github.com/myitcv/gobin