Initializing a project using Go modules
Golang includes the
go mod command to initialize a new project. Sometimes that command fails even though it tries to be smart about where to get the name of your module from so we give an example of how to explicitly set the name of your go modules based project.
shellmkdir my-go-project cd my-go-project go mod init github.com/christopherbiscardi/my-go-project