diff --git a/arrays/sum.go b/arrays/sum.go index c4320d8..e66ebc8 100644 --- a/arrays/sum.go +++ b/arrays/sum.go @@ -1,4 +1,4 @@ -package arrays +package main func Sum(numbers []int) int { sum := 0 diff --git a/arrays/sum_test.go b/arrays/sum_test.go index 525a013..305132c 100644 --- a/arrays/sum_test.go +++ b/arrays/sum_test.go @@ -1,4 +1,4 @@ -package arrays +package main import ( "slices" diff --git a/helloworld/hello.go b/helloworld/hello.go index 7cad79f..6aaa6ad 100644 --- a/helloworld/hello.go +++ b/helloworld/hello.go @@ -1,4 +1,4 @@ -package helloworld +package main import ( "fmt" diff --git a/helloworld/hello_test.go b/helloworld/hello_test.go index 5631fe7..bac4263 100644 --- a/helloworld/hello_test.go +++ b/helloworld/hello_test.go @@ -1,4 +1,4 @@ -package helloworld +package main import "testing" diff --git a/integers/adder.go b/integers/adder.go index 810fa05..f20a86c 100644 --- a/integers/adder.go +++ b/integers/adder.go @@ -1,4 +1,4 @@ -package integers +package main // Add takes two integers and returns the sum of them. func Add(x, y int) int { diff --git a/integers/adder_test.go b/integers/adder_test.go index 88274d8..937d647 100644 --- a/integers/adder_test.go +++ b/integers/adder_test.go @@ -1,4 +1,4 @@ -package integers +package main import ( "fmt" diff --git a/iteration/repeat.go b/iteration/repeat.go index 4e09629..fa2e52a 100644 --- a/iteration/repeat.go +++ b/iteration/repeat.go @@ -1,4 +1,4 @@ -package iteration +package main func Repeat(character string, n int) string { var repeated string diff --git a/iteration/repeat_test.go b/iteration/repeat_test.go index bac94bc..377ee8b 100644 --- a/iteration/repeat_test.go +++ b/iteration/repeat_test.go @@ -1,4 +1,4 @@ -package iteration +package main import ( "fmt" diff --git a/maps/dictionary.go b/maps/dictionary.go index 8b701c2..fe17d8e 100644 --- a/maps/dictionary.go +++ b/maps/dictionary.go @@ -1,4 +1,4 @@ -package maps +package main type Dictionary map[string]string diff --git a/maps/dictionary_test.go b/maps/dictionary_test.go index ad1f762..24010b6 100644 --- a/maps/dictionary_test.go +++ b/maps/dictionary_test.go @@ -1,4 +1,4 @@ -package maps +package main import ( "testing" diff --git a/pointers/wallet.go b/pointers/wallet.go index d0af67e..f25002a 100644 --- a/pointers/wallet.go +++ b/pointers/wallet.go @@ -1,4 +1,4 @@ -package pointers +package main import ( "errors" diff --git a/pointers/wallet_test.go b/pointers/wallet_test.go index 85fd988..f4ae3fc 100644 --- a/pointers/wallet_test.go +++ b/pointers/wallet_test.go @@ -1,4 +1,4 @@ -package pointers +package main import ( "testing" diff --git a/structs/shapes.go b/structs/shapes.go index 2085de3..aaf2e89 100644 --- a/structs/shapes.go +++ b/structs/shapes.go @@ -1,4 +1,4 @@ -package structs +package main import "math" diff --git a/structs/shapes_test.go b/structs/shapes_test.go index eddaf5a..85a6b70 100644 --- a/structs/shapes_test.go +++ b/structs/shapes_test.go @@ -1,4 +1,4 @@ -package structs +package main import "testing"