Initial master
authorsgf <sgf.dma@gmail.com>
Fri, 14 Jun 2024 07:54:40 +0000 (10:54 +0300)
committersgf <sgf.dma@gmail.com>
Fri, 14 Jun 2024 07:54:40 +0000 (10:54 +0300)
go.mod [new file with mode: 0644]
main.go [new file with mode: 0644]
pkg/hello/hello.go [new file with mode: 0644]
pkg/hello/hello_test.go [new file with mode: 0644]

diff --git a/go.mod b/go.mod
new file mode 100644 (file)
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 (file)
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 (file)
index 0000000..2f64554
--- /dev/null
@@ -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 (file)
index 0000000..ca2d609
--- /dev/null
@@ -0,0 +1,10 @@
+
+package hello
+
+import (
+    "testing"
+)
+
+func TestF(t *testing.T) {
+    F()
+}