diff --git a/hello/go.mod b/hello/go.mod deleted file mode 100644 index 4fd7e06..0000000 --- a/hello/go.mod +++ /dev/null @@ -1,3 +0,0 @@ -module hello - -go 1.21.1 diff --git a/helloworld/go.mod b/helloworld/go.mod new file mode 100644 index 0000000..2b98c57 --- /dev/null +++ b/helloworld/go.mod @@ -0,0 +1,3 @@ +module helloworld + +go 1.21.1 diff --git a/hello/hello.go b/helloworld/hello.go similarity index 96% rename from hello/hello.go rename to helloworld/hello.go index f43f4da..74c7166 100644 --- a/hello/hello.go +++ b/helloworld/hello.go @@ -1,4 +1,4 @@ -package main +package helloworld import "fmt" diff --git a/hello/hello_test.go b/helloworld/hello_test.go similarity index 90% rename from hello/hello_test.go rename to helloworld/hello_test.go index cfe1280..fdf1df5 100644 --- a/hello/hello_test.go +++ b/helloworld/hello_test.go @@ -1,9 +1,9 @@ -package main +package helloworld import "testing" func TestHello(t *testing.T) { - t.Run("saying hello to people", func(t *testing.T) { + t.Run("saying helloworld to people", func(t *testing.T) { got := Hello("Chris", "") want := "Hello, Chris" assertCorrectMessage(t, got, want)