Re:Go modules have a v2+ problem
by Thaxll on Thursday September 10, 2020 @09:04AM
(#24431944)
Most likely people don't know where the doc is, Go documentation for module is excellent: https://github.com/golang/go/wiki/Modules
[ Parent
| on HN ]
A big problem with this documentation is that it's not with the rest of the docs and isn't found in search on golang.org.
The docs provide enough to make modules work but are far from excellent in terms of docs.
These docs also highlight things about how the Go team thinks. For example, if a project is versioned at v2 or later they recommend incrementing the major version of your code when adopting modules. Instead of modules being support tooling for the app it's designed and thought of as important as a major version change.
But that's not the go modules documentation. That's just some wiki put together with duct tape and good intentions.
The real documentation is here: https://golang.org/cmd/go/#hdr-Modules__module_versions__and...
and is identical to the output of `go help modules`