Go dependency management tips
- View a list of available upgrades for all dependencies of a given module by running
go list -m -u all
2. Run the following command at the project root directory
go get -u ./…
3. Tide up Go module to ensure the go.mod file matches the source code in the module.
go mod tidy
4. ( Optional ) To update vendoring
directory
go mod vendor
Leave some comments if you would like to know anything else.
Thank you.