Skip to content

Commit bd6a7f1

Browse files
committed
update: gopath removed from the first directory exercises etc
1 parent 22d1992 commit bd6a7f1

6 files changed

Lines changed: 1 addition & 52 deletions

File tree

first/first/exercises/02/exercise.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

first/first/exercises/02/solution/solution.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

first/first/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func main() {
3434
// Println function of "fmt" package becomes available
3535

3636
// Look at what it looks like by typing in the console:
37-
// godoc -src fmt Println
37+
// go doc -src fmt Println
3838

3939
// Println is just an exported function from
4040
// "fmt" package

first/first/questions/02-code-your-first-program-questions.md renamed to first/first/questions/01-code-your-first-program-questions.md

File renamed without changes.

first/first/questions/01-gopath-questions.md

Lines changed: 0 additions & 19 deletions
This file was deleted.

first/first/questions/03-run-your-first-program-questions.md renamed to first/first/questions/02-run-your-first-program-questions.md

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -9,28 +9,6 @@
99
>
1010
>
1111
12-
13-
## Which directory `go build` puts the compiled code into?
14-
1. The same directory where you call `go build` *CORRECT*
15-
2. $GOPATH/src directory
16-
3. $GOPATH/pkg directory
17-
4. Into a temporary directory.
18-
19-
> **2:** There only lives Go source-code files
20-
>
21-
>
22-
> **3:** Go only puts your code there when you call `go install`.
23-
>
24-
>
25-
26-
27-
## Which directory `go run` puts the compiled code into?
28-
1. The same directory where you call `go run`
29-
2. $GOPATH/src directory
30-
3. $GOPATH/pkg directory
31-
4. Into a temporary directory. *CORRECT*
32-
33-
3412
## Which one below is true for runtime?
3513
1. It happens when your program starts running on a computer *CORRECT*
3614
2. It happens while your program is being compiled

0 commit comments

Comments
 (0)