To create a go module, you have to create a go.mod file using go mod init scripts that has some basic information about the module.

go.mod

go.mod, simply speaking, allows you to write go code within a directory where it’s been created. It holds all information about dependencies that this module uses and so on.

Go modules naming conventions