refactor: first four section, organize cont.
This commit is contained in:
parent
f860bc6895
commit
fae3ab32d9
@ -8,7 +8,8 @@
|
||||
package main
|
||||
|
||||
// ---------------------------------------------------------
|
||||
// EXERCISE
|
||||
// EXERCISE: Print names
|
||||
//
|
||||
// Print your name and your best friend's name using
|
||||
// Println twice
|
||||
//
|
@ -1,5 +1,6 @@
|
||||
// ---------------------------------------------------------
|
||||
// EXERCISE
|
||||
// EXERCISE: Print GOPATH
|
||||
//
|
||||
// Print your GOPATH using `go env` tool
|
||||
//
|
||||
// EXPECTED OUTPUT
|
@ -1,6 +1,6 @@
|
||||
1. **Print your name and your best friend's name** using Println twice. [Check out this exercise here](https://github.com/inancgumus/learngo/tree/master/02-write-your-first-program/exercises/01).
|
||||
1. **Print your name and your best friend's name** using Println twice. [Check out this exercise here](https://github.com/inancgumus/learngo/tree/master/02-write-your-first-program/exercises/01-print-names).
|
||||
|
||||
2. **Print your GOPATH** using `go env` tool. [Check out this exercise here](https://github.com/inancgumus/learngo/tree/master/02-write-your-first-program/exercises/02).
|
||||
2. **Print your GOPATH** using `go env` tool. [Check out this exercise here](https://github.com/inancgumus/learngo/tree/master/02-write-your-first-program/exercises/02-print-gopath).
|
||||
|
||||
3. **Say hello to yourself.**
|
||||
|
||||
|
13
03-packages-and-scopes/exercises/README.md
Normal file
13
03-packages-and-scopes/exercises/README.md
Normal file
@ -0,0 +1,13 @@
|
||||
1. **[Use your own package](https://github.com/inancgumus/learngo/tree/master/03-packages-and-scopes/exercises/01-packages)**
|
||||
|
||||
Create a few Go files and call their functions from the main function.
|
||||
|
||||
|
||||
2. **[Try the scopes](https://github.com/inancgumus/learngo/tree/master/03-packages-and-scopes/exercises/02-scopes)**
|
||||
|
||||
Learn the effects of scoping across packages.
|
||||
|
||||
|
||||
3. **[Rename imports](https://github.com/inancgumus/learngo/tree/master/03-packages-and-scopes/exercises/03-importing)**
|
||||
|
||||
Import the same package using a different name.
|
23
04-statements-expressions-comments/exercises/README.md
Normal file
23
04-statements-expressions-comments/exercises/README.md
Normal file
@ -0,0 +1,23 @@
|
||||
1. **[Shy Semicolons](https://github.com/inancgumus/learngo/tree/master/04-statements-expressions-comments/exercises/01-shy-semicolons)**
|
||||
|
||||
Observe how Go fixes semicolons for you.
|
||||
|
||||
2. **[Naked Expression](https://github.com/inancgumus/learngo/tree/master/04-statements-expressions-comments/exercises/01-shy-semicolons)**
|
||||
|
||||
Observe what happens when you use an expression without a statement.
|
||||
|
||||
3. **[Operators Combine](https://github.com/inancgumus/learngo/tree/master/04-statements-expressions-comments/exercises/03-operators-combine)**
|
||||
|
||||
Try using operators to combine expressions.
|
||||
|
||||
4. **[Print Go Version](https://github.com/inancgumus/learngo/tree/master/04-statements-expressions-comments/exercises/04-print-go-version)**
|
||||
|
||||
Use a package from Go Standard Library to print the current version of Go on your system. Or the system which will run your program.
|
||||
|
||||
5. **[Comment Out](https://github.com/inancgumus/learngo/tree/master/04-statements-expressions-comments/exercises/05-comment-out)**
|
||||
|
||||
Learn how to comment out.
|
||||
|
||||
6. **[Use the GoDoc](https://github.com/inancgumus/learngo/tree/master/04-statements-expressions-comments/exercises/06-use-godoc)**
|
||||
|
||||
Try godoc yourself.
|
Loading…
x
Reference in New Issue
Block a user