Go Modules

  • Is a collection of Go packages

  • Why do we Go Modules:

    • The import path for the custom packages we create is derived from the name of the go module.

  • go.mod file is create when we create a new module.

  • Creating go module

    • go mod init module-name

    • Inside go.mod

         go 1.21.0
  • Creatubng

Last updated