hello
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add Go files

Signed-off-by: Matías Insaurralde <matias@insaurral.de>

+26
+3
go.mod
··· 1 + module github.com/matiasinsaurralde/hello 2 + 3 + go 1.24.5
+11
main.go
··· 1 + package main 2 + 3 + import "fmt" 4 + 5 + func hello() string { 6 + return "Hello, World!" 7 + } 8 + 9 + func main() { 10 + fmt.Println(hello()) 11 + }
+12
main_test.go
··· 1 + package main 2 + 3 + import "testing" 4 + 5 + func TestHello(t *testing.T) { 6 + got := hello() 7 + want := "Hello, World!" 8 + 9 + if got != want { 10 + t.Fatalf("hello() = %q, want %q", got, want) 11 + } 12 + }