When first encountering Golang, usage of GOPATH
was really hard: why should everything be in the same
directory structure? What about versioning? How can I stop making it break?
Using gopkg.in
was a very good band-aid that worked very well for 3 years. Over time we got used to the GOPATH,
even when it disappeared into go env GOPATH
. We got so used to it, that we started using it in bash
scripts, like this: