Commits

Miki Tebeka  committed b474fa3

format

  • Participants
  • Parent commits 238d86b

Comments (0)

Files changed (6)

 
 
 func main() {
-	items := []float64{1,2,3,4}
+	items := []float64{1, 2, 3, 4}
 
 	fmt.Println(avg64(items))
 }
 package main
+
 import (
 	"big"
 	"flag"
 		fmt.Println("error: bad number -", flag.Arg(0))
 		os.Exit(1)
 	}
-	fmt.Println(fact(n));
+	fmt.Println(fact(n))
 }
 
 func main() {
 	for i := 1; i <= 100; i++ {
-		if i % 15 == 0 {
+		if i%15 == 0 {
 			fmt.Println("FizzBuzz")
-		} else if i % 5 == 0 {
+		} else if i%5 == 0 {
 			fmt.Println("Buzz")
-		} else if i % 3 == 0 {
+		} else if i%3 == 0 {
 			fmt.Println("Fizz")
 		} else {
 			fmt.Println(i)
 )
 
 func main() {
-    url := "http://golang.org/pkg/"
+	url := "http://golang.org/pkg/"
 	response, _, _ := http.Get(url)
 	body, _ := ioutil.ReadAll(response.Body)
 
 }
 
 func main() {
-	fmt.Println(Map(double, []int{1,2,3,4}))
+	fmt.Println(Map(double, []int{1, 2, 3, 4}))
 }
 	flag.Parse()
 
 	prev := ""
-	for _, s := range(flag.Args()) {
+	for _, s := range flag.Args() {
 		if s == prev {
 			continue
 		}
 		prev = s
 	}
 }
-