goget.sh is an all-in-one script to install a go package.
Before installing your package, it first installs go and
initializes the go workspace (i.e., $GOPATH
) if needed.
It is designed for an easier setup process; mainly for the
newcomers and people who are interested in a project but
not necessarily programming in go.
This is an example on how to install goimports
with goget.sh
:
curl -sL https://git.io/goget | bash -s -- golang.org/x/tools/cmd/goimports
For go users, it is just like go get
: