Go modules
Go modules were first introduced in Go version 1.11. At the time of writing, the latest Go version is 1.13. Although the general idea behind Go modules will remain the same, some of the presented details might change in future versions of Go.
A Go module is like a Go package with a version. Go uses semantic versioning for versioning modules. This means that versions begin with the letter v followed by the version number. Therefore, you can have versions such as v1.0.0, v1.0.5, and v2.0.2. The v1, v2, or v3 part signifies the major version of a Go package that is usually not backwards compatible. This means that if your Go program works with v1, it will not necessarily work with v2 or v3 – it might work, but you cannot count on ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access