diff --git a/go.mod b/go.mod index 6e11867..30b1472 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ -module hello +module gobytest go 1.22.5 diff --git a/hello.go b/helloworld/hello.go similarity index 89% rename from hello.go rename to helloworld/hello.go index ead19c7..b624f00 100644 --- a/hello.go +++ b/helloworld/hello.go @@ -1,8 +1,4 @@ -package main - -import ( - "fmt" -) +package helloworld const ( english = "English" @@ -48,7 +44,7 @@ func Hello(name, language string) string { return prefix + name } -func main() { - initDefaults() - fmt.Println(Hello("Mary", "English")) -} +// func main() { +// initDefaults() +// fmt.Println(Hello("Mary", "English")) +// } diff --git a/hello_test.go b/helloworld/hello_test.go similarity index 97% rename from hello_test.go rename to helloworld/hello_test.go index 37242d9..946c069 100644 --- a/hello_test.go +++ b/helloworld/hello_test.go @@ -1,4 +1,4 @@ -package main +package helloworld import "testing"