#+title: go commands

go

go mod init <module path>
  • Initalized a go.mod file

  • Describes the module and go version of used in the program go.mod file

    module booking-app
    
    go 1.20
    
    
  • the module path is also the import path

  • All code belongs to a package.

Edit this page on GitHub