Go modules manage your project's dependencies. A module is a collection of packages with a go.mod file at the root. This file tracks which external packages your code uses.
To create a new module, run go mod init followed by a module name. For example: go mod init myproject. This creates a go.mod file that Go uses to track your dependencies.