Modules follow semver; a v2 or later major version appends /v2 to the module path. `go get` updates dependencies, `go mod tidy` prunes them, and `go mod vendor` copies them into the repo for hermetic builds. GOPROXY and GOSUMDB secure downloads.
← Go theorytheory 0/50 · 0%
Toolchain · medium
33. Modules, Versioning and Vendoring
Semantic import versioning.
Check your understanding
1. A v2 module path must…
2. Which command prunes unused deps?