json/v2)go.mod is the file that contains the module name along with direct dependency requirements (and from Go 1.13 the version of Go used as well)module hello // the module name
require github.com/x v1.1 // dependencies
go 1.13 // go version
go.sum file has checksums for all dependencies, including all transitive dependencies
GOPROXY to specify the proxy server URL(s), GOSUMDB to specify the checksum databasereplace directive might be needed which will point to a compatible but fixed version that Go builds will usego mod init module-name, this will create the go.mod filego build will update the go.mod filego get -ugo mod tidy will remove unneeded modules, should be done after go get -ugo list -m -versions module-namego get example.com/module@latest, or @v1.6.3 for a specific versiongo clean -modcache if required