The _____ command is used to initialize a new module in a Go project.

  • go init
  • go create
  • go new
  • go mod init
In Go, the go mod init command is used to initialize a new module in a Go project. This command creates a go.mod file in the project's root directory, which will be used to track the module's dependencies. It's an essential step when starting a new Go project or when adding module support to an existing project.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *