module path

The name a Go module declares in its go.mod file, which is also the prefix of every import path inside it.

In more detail

For published code the path is where the code lives, such as github.com/owner/repo, so the go command can fetch it. For private code any unique name works; the course uses course.local/probe. Choose it carefully, because renaming it changes every import.

Example

module course.local/probe

Related terms

Taught in

References