Go Modules and Dependency Management

Quiz yourself on Go modules,versioning,and package management.

1. Which command initializes a new Go module?
2. What is the primary purpose of the 'go mod tidy' command?
3. Which file records cryptographic hashes to verify dependency integrity?
4. Which commands manage Go module dependencies? (Select all that apply)
5. When is a dependency marked 'indirect' in go.mod? (Select all that apply)
6. Go modules require a version control system (e.g., Git) to function.
7. The 'replace' directive in go.mod overrides a dependency with a local directory or alternative version.
8. What directory does 'go mod vendor' create to store dependencies locally? (single word)
9. What flag with 'go get' updates a dependency to the latest patch version (e.g., v1.2.3 → v1.2.4)?
10. What is the minimum Go version that introduced modules as an experimental feature? (format: X.Y)
Answered 0 of 0 — 0 correct