GO-MOD(1)

πŸ’– GO-MOD(1) β€” module maintenance πŸ’–

okay bestie, gather round, because this is go mod, section 1 of the manual, and it's giving module maintenance. it lives in the "Go programming tools and commands" corner of the man pages, and honestly? it's kind of a big deal. πŸŽ€


✨ NAME ✨

go-mod β€” module maintenance. that's it, that's the whole vibe. πŸ’…


🌸 SYNOPSIS 🌸

go mod command [arguments]

πŸ¦‹ DESCRIPTION πŸ¦‹

so go mod is your backstage pass to operations on modules. it's how you poke at modules directly, no cap. πŸ”₯

but here's the thing bestie, and this is important: support for modules is built into all the go commands, not just go mod. like, it's not a special little side quest, it's in everything. so for your day-to-day adding, removing, upgrading, and downgrading of dependencies, you should be using go get, not go mod. fr fr.

and if you want the whole overview of module functionality, go read go help modules. it's there. go look. πŸ‘‘


πŸ‘‘ COMMANDS πŸ‘‘

one bullet per command, zero skips, we don't do that here:

  • download β€” downloads modules to the local cache. cute little stash for later. πŸ“
  • edit β€” edits go.mod from tools or scripts. yes, the tools can do it too.
  • graph β€” prints the module requirement graph. it's a whole map of who needs whom. 🌈
  • init β€” initializes a new module in the current directory. brand new baby module. ✨
  • tidy β€” adds missing modules and removes unused ones. cleaning up your room but for dependencies.
  • vendor β€” makes a vendored copy of dependencies. keeping them right there with you. 🫢
  • verify β€” verifies dependencies have expected content. vibe check, but for hashes. πŸ”
  • why β€” explains why packages or modules are needed. the "but why" command, iconic honestly. 😭

want more tea on any single one of these? use go help mod <command>. that's the move. πŸ’œ


🌟 AUTHOR 🌟

this manual page was created using help2man, and then the output got updated afterwards. it's maintained by the Debian Go Compiler Team <team+go-compiler@tracker.debian.org> for the Debian project β€” and yeah, other people are allowed to use it too. πŸ’–


and that's the whole page!! πŸŽ€ this was Go 1.27, dated August 2026, and yes we're still calling it GO-MOD(1) at the bottom like the absolute main character it is. slay, bye bestie πŸ’…βœ¨

πŸ“¦ where this page comes from