Skip to content

Commit 4904249

Browse files
committed
15 exercise solutions
1 parent 30b7b45 commit 4904249

File tree

13 files changed

+12
-96
lines changed

13 files changed

+12
-96
lines changed

01_getting-started/01_helloWorld/firstFile.go

-18
This file was deleted.
+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package main
2+
3+
import "fmt"
4+
5+
func main() {
6+
fmt.Println("Hello world!")
7+
}

15_exercise-solutions/aa04_params-and-args/main.go 15_exercise-solutions/05_params-and-args/main.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ package main
33
import "fmt"
44

55
func main() {
6-
f(1, 2)
7-
f(1, 2, 3)
6+
foo(1, 2)
7+
foo(1, 2, 3)
88
aSlice := []int{1, 2, 3, 4}
9-
f(aSlice...)
10-
f()
9+
foo(aSlice...)
10+
foo()
1111
}
1212

13-
func f(numbers ...int) {
13+
func foo(numbers ...int) {
1414
fmt.Println(numbers)
1515
}

15_exercise-solutions/18_func-expression/adder.go

-10
This file was deleted.

15_exercise-solutions/25_exercises/02_fibonacci/main.go

-19
This file was deleted.

15_exercise-solutions/aa01_variadic-params/main.go

-14
This file was deleted.

15_exercise-solutions/aa02_variadic-args/main.go

-15
This file was deleted.

15_exercise-solutions/aa03_slice-instead-of-variadic/main.go

-15
This file was deleted.

0 commit comments

Comments
 (0)