Golang
  • golang
  • cli
  • debug
  • Go Modules
  • Style Guide:
  • vscode
  • programming
    • bookmarks
    • strings
  • rest
    • refs
  • variables
Powered by GitBook
On this page

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

PreviousdebugNextStyle Guide:

Last updated 11 months ago