Rename original module
This commit is contained in:
parent
f39c5778ce
commit
938de9634c
@ -1,3 +0,0 @@
|
||||
module hello
|
||||
|
||||
go 1.21.1
|
3
helloworld/go.mod
Normal file
3
helloworld/go.mod
Normal file
@ -0,0 +1,3 @@
|
||||
module helloworld
|
||||
|
||||
go 1.21.1
|
@ -1,4 +1,4 @@
|
||||
package main
|
||||
package helloworld
|
||||
|
||||
import "fmt"
|
||||
|
@ -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)
|
Loading…
Reference in New Issue
Block a user