go mod
Module maintenance
Subcommands
Name | Description |
---|---|
download | Download the named modules into the module cache |
edit | Edit and format go.mod files |
graph | Print the module requirement graph |
init | Initialize and write a new go.mod file in the current directory |
tidy | Ensure that the go.mod file matches the source code in the module |
vendor | Construct a directory named vendor in the main module's root directory |
verify | Check that dependencies of the main module stored in the module cache have not been modified since they were downloaded |
why | Show a shortest path in the import graph from the main module to each of the listed packages |