Become a member
to unlock all features

Level Up!

Access all courses & lessons on egghead today and lock-in your price for life.


    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