diff --git a/02-write-your-first-program/exercises/01/main.go b/02-write-your-first-program/exercises/01-print-names/main.go similarity index 95% rename from 02-write-your-first-program/exercises/01/main.go rename to 02-write-your-first-program/exercises/01-print-names/main.go index 1820160..187314e 100644 --- a/02-write-your-first-program/exercises/01/main.go +++ b/02-write-your-first-program/exercises/01-print-names/main.go @@ -8,7 +8,8 @@ package main // --------------------------------------------------------- -// EXERCISE +// EXERCISE: Print names +// // Print your name and your best friend's name using // Println twice // diff --git a/02-write-your-first-program/exercises/01/solution/main.go b/02-write-your-first-program/exercises/01-print-names/solution/main.go similarity index 100% rename from 02-write-your-first-program/exercises/01/solution/main.go rename to 02-write-your-first-program/exercises/01-print-names/solution/main.go diff --git a/02-write-your-first-program/exercises/02/exercise.md b/02-write-your-first-program/exercises/02-print-gopath/exercise.md similarity index 89% rename from 02-write-your-first-program/exercises/02/exercise.md rename to 02-write-your-first-program/exercises/02-print-gopath/exercise.md index cb2de95..21906be 100644 --- a/02-write-your-first-program/exercises/02/exercise.md +++ b/02-write-your-first-program/exercises/02-print-gopath/exercise.md @@ -1,5 +1,6 @@ // --------------------------------------------------------- -// EXERCISE +// EXERCISE: Print GOPATH +// // Print your GOPATH using `go env` tool // // EXPECTED OUTPUT diff --git a/02-write-your-first-program/exercises/02/solution/solution.md b/02-write-your-first-program/exercises/02-print-gopath/solution/solution.md similarity index 100% rename from 02-write-your-first-program/exercises/02/solution/solution.md rename to 02-write-your-first-program/exercises/02-print-gopath/solution/solution.md diff --git a/02-write-your-first-program/exercises/README.md b/02-write-your-first-program/exercises/README.md index 8fbe96b..33c9236 100644 --- a/02-write-your-first-program/exercises/README.md +++ b/02-write-your-first-program/exercises/README.md @@ -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.** diff --git a/03-packages-and-scopes/exercises/README.md b/03-packages-and-scopes/exercises/README.md new file mode 100644 index 0000000..4f1e337 --- /dev/null +++ b/03-packages-and-scopes/exercises/README.md @@ -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. \ No newline at end of file diff --git a/04-statements-expressions-comments/exercises/README.md b/04-statements-expressions-comments/exercises/README.md new file mode 100644 index 0000000..6ba2e82 --- /dev/null +++ b/04-statements-expressions-comments/exercises/README.md @@ -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. \ No newline at end of file