GVM: Go Version Manager
What I learned today — 12 July 2018
Up front: This is my first time to dabble with Golang.
When I decided to take my first tentative steps in the world of Go I thought it would probably be a good idea to use a tool to manage my Go environment, so being familiar with tools such us NVM I quickly found GVM. After battling with the installation I figured that just installing a go
binary is probably all I need to get started, so I used the -B
option: gvm install go1.9.7 -B
.
What was (is) really confusing to a newbie is how GVM manages the $GOPATH
, which is plainly different from what the documentation suggests. James Vastbinder’s blog entry helped to understand how GVM is intended to be used, but what still baffles me is: Why would I put my project code in a $GOPATH
like “/home/niel/.gvm/pkgsets/go1.9.7/operators”?