Permalink
Browse files

improvements

  • Loading branch information...
GoesToEleven committed Oct 28, 2015
1 parent 5fbf8ce commit 2a264824467903191651130d79d75bf72e175b38
Showing with 48 additions and 20 deletions.
  1. +2 −2 10_for-loop/02_nested/main.go
  2. +4 −1 10_for-loop/07_rune-loop_UTF8/01/main.go
  3. +1 −1 10_for-loop/07_rune-loop_UTF8/02/main.go
  4. +1 −1 11_switch-statements/01_switch/main.go
  5. +0 −1 {12_conditionals → 12_if_else-if_else}/01_eval-true/main.go
  6. 0 {12_conditionals → 12_if_else-if_else}/02_not-exclamation/main.go
  7. 0 {12_conditionals → 12_if_else-if_else}/03_init-statement/main.go
  8. 0 {12_conditionals → 12_if_else-if_else}/04_init-statement_error_invalid-code/main.go
  9. 0 {12_conditionals → 12_if_else-if_else}/05_if-else/main.go
  10. 0 {12_conditionals → 12_if_else-if_else}/06_if-elseif-else/main.go
  11. 0 {12_conditionals → 12_if_else-if_else}/07_if-elseif-elseif-else/main.go
  12. 0 {12_conditionals → 12_if_else-if_else}/08_divisibleByThree/main.go
  13. +7 −0 13_exercise-solutions/01_hello-world/main.go
  14. +0 −12 13_exercise-solutions/01_whatRemains/main.go
  15. +8 −0 13_exercise-solutions/02_hello-NAME/main.go
  16. +10 −0 13_exercise-solutions/03_hello-user-input/main.go
  17. +13 −0 13_exercise-solutions/04_user-enters-numbers/main.go
  18. +1 −1 13_exercise-solutions/{02_even-numbers → 05_even-numbers}/main.go
  19. 0 13_exercise-solutions/{03_fizzBuzz → 06_fizzBuzz}/main.go
  20. 0 13_exercise-solutions/{04_threeFive → 07_threeFive}/main.go
  21. 0 13_exercise-solutions/{05_benchMark → 08_just-fyi/01_benchMark}/bm_test.go
  22. 0 13_exercise-solutions/{06_benchMark → 08_just-fyi/02_benchMark}/bm_test.go
  23. 0 13_exercise-solutions/{07_utf/utf.go → 08_just-fyi/03_utf/main.go}
  24. +1 −1 56_twitter/28_code-review/model.go
@@ -3,8 +3,8 @@ package main
import "fmt"
func main() {
for i := 0; i < 10; i++ {
for j := 0; j < 10; j++ {
for i := 0; i < 5; i++ {
for j := 0; j < 5; j++ {
fmt.Println(i, " - ", j)
}
}
@@ -3,7 +3,10 @@ package main
import "fmt"
func main() {
for i := 0; i <= 200; i++ {
for i := 50; i <= 140; i++ {
fmt.Println(i, " - ", string(i), " - ", []byte(string(i)))
}
foo := "a"
fmt.Println(foo)
fmt.Printf("%T \n", foo)
}
@@ -3,7 +3,7 @@ package main
import "fmt"
func main() {
for i := 0; i <= 999; i++ {
for i := 50; i <= 140; i++ {
fmt.Printf("%v - %v - %v \n", i, string(i), []byte(string(i)))
}
}
@@ -3,7 +3,7 @@ package main
import "fmt"
func main() {
switch "Medhi" {
switch "Mhi" {
case "Daniel":
fmt.Println("Wassup Daniel")
case "Medhi":
@@ -11,5 +11,4 @@ func main() {
if false {
fmt.Println("This did not run")
}
}
@@ -0,0 +1,7 @@
package main
import "fmt"
func main() {
fmt.Println("Hello World")
}

This file was deleted.

Oops, something went wrong.
@@ -0,0 +1,8 @@
package main
import "fmt"
func main() {
name := "Todd"
fmt.Println("Hello", name)
}
@@ -0,0 +1,10 @@
package main
import "fmt"
func main() {
var name string
fmt.Print("Please enter your name: ")
fmt.Scan(&name)
fmt.Println("Hello", name)
}
@@ -0,0 +1,13 @@
package main
import "fmt"
func main() {
var numOne int
var numTwo int
fmt.Print("Please enter a large number: ")
fmt.Scan(&numOne)
fmt.Print("Please enter a smaller number: ")
fmt.Scan(&numTwo)
fmt.Println(numOne, "/", numTwo, " = ", numOne / numTwo)
}
@@ -3,7 +3,7 @@ package main
import "fmt"
func main() {
for i := 1; i <= 100; i++ {
for i := 0; i <=100; i++ {
if i%2 == 0 {
fmt.Println(i)
}
@@ -10,4 +10,4 @@ type SessionData struct {
User
LoggedIn bool
LoginFail bool
}
}

0 comments on commit 2a26482

Please sign in to comment.