Go provides a tool named _________ to manage dependencies and versioning.
- dep
- go.mod
- godep
- goget
In Go, the tool named go.mod is used to manage dependencies and versioning. It's a central part of Go's dependency management system introduced in Go 1.11. The go.mod file defines the module's name, its dependencies with their specific versions, and other module-specific metadata. This file is automatically created when you initialize a new Go module in your project using the go mod init command.
Loading...
Related Quiz
- In a Go application, you encounter a circular import error. How would you refactor your code to resolve this issue?
- What is the purpose of the sql.NullString type in the database/sql package?
- You are tasked with creating a Go program that can read and write data to a file. How would you handle potential errors that might occur during file operations?
- What keyword is used to define a function in Go?
- What is the advantage of using anonymous functions in Go?