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
free 100$ digital ocean credit