initial commit

This commit is contained in:
2024-05-25 00:13:09 -04:00
commit 3e36394e47
7 changed files with 87 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
module hello
go 1.22.1
+11
View File
@@ -0,0 +1,11 @@
package main
import "fmt"
func Hello(name string) string {
return "Hello, " + name
}
func main() {
fmt.Println(Hello("world"))
}
+12
View File
@@ -0,0 +1,12 @@
package main
import "testing"
func TestHello(t *testing.T) {
got := Hello("Chris")
want := "Hello, Chris"
if got != want {
t.Errorf("got %q want %q", got, want)
}
}