go-mod

Module maintenance.

TLDR

Initialize new module in current directory

$ go mod init [moduleName]
copy

Download modules to local cache

$ go mod download
copy

Add missing and remove unused modules

$ go mod tidy
copy

Verify dependencies have expected content

$ go mod verify
copy

Copy sources of all dependencies into the vendor directory

$ go mod vendor
copy

Copied to clipboard
Dodo Farming