A go.mod file holds a Go module’s identity and configuration: its module path, target Go version, and any declared third-party dependencies. Create it at the top level of a new project before adding application code. section 1.2.4 section 1.5
Initialize a project
From the project directory, run `go mod init hellogo`. This creates go.mod; you can then add main.go in the same directory. If you plan to share the project, use a unique module path, commonly a repository URL path such as `github.com/[USERNAME]/[REPO]`, instead of `hellogo`. section 1.5
Third-party dependencies added with `go get` appear in go.mod. After manually changing the target version or removing dependencies, run `go mod tidy` to clean up the dependency tree and file. section 1.2.4


