From 268677b9adad105d4d3cc873ea65ff1dff69975b Mon Sep 17 00:00:00 2001 From: vinchent Date: Tue, 10 Sep 2024 11:47:40 +0200 Subject: [PATCH] reorgniaze the repo --- go.mod | 2 +- hello.go => helloworld/hello.go | 14 +++++--------- hello_test.go => helloworld/hello_test.go | 2 +- 3 files changed, 7 insertions(+), 11 deletions(-) rename hello.go => helloworld/hello.go (89%) rename hello_test.go => helloworld/hello_test.go (97%) 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"