Basics Flashcards

(5 cards)

1
Q

What is the go workspace?

A

Directory containing subdirectories:
bin
pkg
src

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

What is the environment variable that points to the go workspace?

A

GOPATH

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

What is the environment variable to points to the go binary?

A

GOROOT

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

How do you list go environment variables?

A

go env

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

How do you install packages and dependencies?

A

go get

* requires git binary as dependency

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