commands.sh

go mod

all

Module maintenance.

More info →

Examples (5)

Initialize new module in current directory

go mod init moduleName

Download modules to local cache

go mod download

Add missing and remove unused modules

Verify dependencies have expected content

go mod verify

Copy sources of all dependencies into the vendor directory

go mod vendor
made by @shridhargupta | data from tldr-pages