Go modules are soon going to be the only future

The GOPATH and 'go get' are brilliant features of Go. We should make it mandatory for libraries to include version number at the end of the file path. Having to make a go.mod file is annoying and it's an extra detail that isn't needed. We should just make it so if people want to update to a later version of a library they download that version of the library. Previous versions of the libraries would be in their respective file locations. Yes it means that github would have to have the source code for every supported version of a library. When the source code is no longer supported then it's clearly time to update the library anyway.

Also, to update a specific version of the library you would just specify:

go get -u "github.com\26F\library\v2"

and it would update that version of the library.

/r/golang Thread Link - utcc.utoronto.ca