Go Modules

A module is a collection of Go packages stored in a file tree with a go.mod file at its root.

The go.mod file defines the module’s module path, which is also the import path used for the root directory, and its dependency requirements, which are the other modules needed for a successful build.

From Go 1.13 onwards, this step “set GO111MODULE=on” won’t be required since Go modules will be enabled by default.