19 lines
516 B
Markdown
19 lines
516 B
Markdown
|
## Where you should put your Go source code into?
|
||
|
* Anywhere on my computer
|
||
|
* Under $GOPATH
|
||
|
* Under $GOPATH/src *CORRECT*
|
||
|
|
||
|
## What $GOPATH means?
|
||
|
* It's a file for Go runtime
|
||
|
* Stores Go source code files and compiled packages
|
||
|
* It's a path for gophers to follow
|
||
|
|
||
|
## Do you need to set your $GOPATH?
|
||
|
* Yes
|
||
|
* No: It's stored on my desktop
|
||
|
* No: It's stored under my user path *CORRECT*
|
||
|
|
||
|
## How can you print your $GOPATH?
|
||
|
* Using `ls` command
|
||
|
* Using `go env GOPATH` command *CORRECT*
|
||
|
* Using `go environment` command
|