Golang Flashcards
1
Q
go mod
A
go command which provides access to operations on modules
2
Q
go mod
commands list
A
download edit graph init tidy vendor verify why
3
Q
go mod download
A
download modules to local cache
4
Q
go mod edit
A
edit go.mod from tools or scripts
5
Q
go mod graph
A
print module requirement graph
6
Q
go mod init
A
initialize new module in current directory.
example usage:go mod init github.com//
7
Q
go mod vendor
A
make vendored copy of dependencies
- go 1.14 or later will automatically search ./vendor/ for dependencies
- be sure to run
go mod vendor
every time the go.mod file is updated
8
Q
go mod verify
A
verify the dependencies have expected content
9
Q
go mod why
A
explain why packages or modules are needed
10
Q
go help modules
A
learn more about modules