1. download
# DOWNLOAD MODULES to Local Cache (download dependency package)
Go Mod Download
2. edit
# Edit Go.mod from Tools or Scripts (Edit GO.MOD)
Go Mod Edit
3. graph
# Print Module Requirement Graph
Go Mod Graph
4. init
# Initialize New Module in Current Directory (initialized MOD in the current directory)
Go Mod Init
5. tidy
#DD missing and remove unused modules
Go Mod Tidy
6. vender
# Make VENDORED COPY of DependenCies
Go Mod Vendor
7. verify
# VVERIFY Dependencies Have Expected Content
Go Mod Verify
8. why
# Explain why Packages or Modules are needed (explained why it needs to be dependent)
Go Mod why
Original: Execute Go Help Mod
Go mod provides access to operations on modules.
Note that support for modules is built into all the go commands,
not just 'go mod'. For example, day-to-day adding, removing, upgrading,
and downgrading of dependencies should be done using 'go get'.
See 'go help modules' for an overview of module functionality.
Usage:
go mod <command> [arguments]
The commands are:
download download modules to local cache
edit edit go.mod from tools or scripts
graph print module requirement graph
init initialize new module in current directory
tidy add missing and remove unused modules
vendor make vendored copy of dependencies
verify verify dependencies have expected content
why explain why packages or modules are needed
Use "go help mod <command>" for more information about a command.