diff --git a/example/go.mod b/example/go.mod index e180640..050bb7a 100644 --- a/example/go.mod +++ b/example/go.mod @@ -1,3 +1,3 @@ -module example +module github.com/KimoTek/Golang/example -go 1.14 +go 1.13 diff --git a/example/main.go b/example/main.go index b12142c..54ed376 100644 --- a/example/main.go +++ b/example/main.go @@ -2,11 +2,12 @@ package main import ( "fmt" - "example/math" - "util" + + "github.com/KimoTek/Golang/example/mathutils" + "github.com/KimoTek/Golang/util" ) func main() { - fmt.Println("Hello world! My lucky number is", math.Mul2(privateHelperFunc())) - fmt.Println("Square:::", util.Square(60)) + fmt.Println("Hello world! My lucky number is", mathutils.Mul2(privateHelperFunc())) + fmt.Println("Square:::", util.Square(60)) } diff --git a/example/math/math.go b/example/math/math.go deleted file mode 100644 index 82c2833..0000000 --- a/example/math/math.go +++ /dev/null @@ -1,5 +0,0 @@ -package math - -func Mul2(x int) int { - return x * 2 -} diff --git a/example/mathutils/main.go b/example/mathutils/main.go new file mode 100644 index 0000000..9c1579e --- /dev/null +++ b/example/mathutils/main.go @@ -0,0 +1,6 @@ +package mathutils + +// Mul2 returns given int times 2 +func Mul2(x int) int { + return x * 2 +} diff --git a/util/go.mod b/util/go.mod index 9a0d464..a7e41e1 100644 --- a/util/go.mod +++ b/util/go.mod @@ -1,3 +1,3 @@ -module util +module github.com/KimoTek/Golang/util -go 1.14 +go 1.13