Go mod
A module is a collection of related Go packages. Modules are the source code interchange and version control unit. The go command has direct support for working with modules, including writing and resolving dependencies in other modules.
go mod [command] [arguments]
A module is defined by a tree of Go source files with a go.mod file in the root directory of the tree. The directory that contains the go.mod file is called the module root.
The go.mod file defines the module path and lists the specific versions of other modules that should be used when resolving imports during a build, providing their module paths and versions.
To create a new module, use the following command:
go mod init github.com/user/gomyproject