refactor: move questions into their own folder for the first 5 sections
This commit is contained in:
19
02-write-your-first-program/questions/01-gopath/README.md
Normal file
19
02-write-your-first-program/questions/01-gopath/README.md
Normal file
@ -0,0 +1,19 @@
|
||||
## 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
|
Reference in New Issue
Block a user