Fig
Blog
Sign in
Blog

Manual Pages

Explore documentation for 400+ CLI tools
  • Menu
    • go
    • go bug
    • go build
    • go clean
    • go doc
    • go env
    • go fix
    • go fmt
    • go generate
    • go get
    • go install
    • go list
    • go mod
      • go mod
      • go mod download
      • go mod edit
      • go mod graph
      • go mod init
      • go mod tidy
      • go mod vendor
      • go mod verify
      • go mod why
    • go work
      • go work
      • go work edit
      • go work init
      • go work sync
      • go work use
    • go run
    • go test
    • go tool
    • go version
    • go vet

go mod tidy

Ensure that the go.mod file matches the source code in the module

Options

NameDescription
-eAttempt to proceed despite errors encountered while loading packages
-vPrint information about removed modules

    On this page

  • Options

Edit this page on Github →

Products

  • Scripts
  • Autocomplete
  • Dotfiles & Secrets
  • Fig AI
  • Access
  • Plugin Store
  • Manual Pages

Social

  • Twitter
  • Github
  • Discord

Resources

  • User Manual
  • Documentation
  • Debug

Company

  • Contact us
  • Privacy Policy
  • Blog

Backed By

Backed by Mango CapitalBacked by General Catalyst
Fig

Made with ❤️ in San Francisco
Copyright © 2025 Hercules Labs Inc.