Senior
What tools have you used for dependency management in Go?
sobes.tech AI
Answer from AI
To manage dependencies in Go, I used:
- Go Modules (go.mod) — the standard tool since Go 1.11, which allows describing project dependencies, their versions, and managing them via
go modcommands. go get— for adding or updating dependencies.go mod tidy— for cleaning up unused dependencies and updating thego.modfile.
Go Modules enable fixing library versions, ensure reproducible builds, and simplify working with external packages without the need for third-party tools.
I also used dep previously, but it is now deprecated and replaced by Go Modules.