From: sgf Date: Fri, 14 Jun 2024 07:54:40 +0000 (+0300) Subject: Initial X-Git-Url: https://gitweb.sgf-dma.tk/?a=commitdiff_plain;ds=sidebyside;p=mypkg.git Initial --- 782a290ad2309575586d71bfa97592a6f335486f diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..ccad565 --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module mypkg + +go 1.22.2 diff --git a/main.go b/main.go new file mode 100644 index 0000000..4da977a --- /dev/null +++ b/main.go @@ -0,0 +1,9 @@ +package main + +import ( + "fmt" +) + +func main() { + fmt.Println("main") +} diff --git a/pkg/hello/hello.go b/pkg/hello/hello.go new file mode 100644 index 0000000..2f64554 --- /dev/null +++ b/pkg/hello/hello.go @@ -0,0 +1,11 @@ + +package hello + +import ( + "fmt" +) + +func F() int { + fmt.Println("Hello") + return 1 +} diff --git a/pkg/hello/hello_test.go b/pkg/hello/hello_test.go new file mode 100644 index 0000000..ca2d609 --- /dev/null +++ b/pkg/hello/hello_test.go @@ -0,0 +1,10 @@ + +package hello + +import ( + "testing" +) + +func TestF(t *testing.T) { + F() +}