Golang Flashcards

1
Q

go mod

A

go command which provides access to operations on modules

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

go mod commands list

A
download
edit
graph
init
tidy
vendor
verify
why
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

go mod download

A

download modules to local cache

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

go mod edit

A

edit go.mod from tools or scripts

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

go mod graph

A

print module requirement graph

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

go mod init

A

initialize new module in current directory.

example usage:
go mod init github.com//

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

go mod verify

A

verify the dependencies have expected content

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

go mod why

A

explain why packages or modules are needed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

go help modules

A

learn more about modules

How well did you know this?
1
Not at all
2
3
4
5
Perfectly