Go module

A tree of Go packages that is versioned and released together, described by a go.mod file at its root.

In more detail

A module is the unit of dependency in Go: you depend on modules, and each has one path and one version at a time. Its go.mod file records the module path, the language version and the modules it needs. Nothing is installed globally, so two projects on one machine can use different versions of the same dependency.

Example

go mod init course.local/probe

Related terms

Taught in

References