From 9e87ed81788e7ab1ae9477ffe69def9e38c9c380 Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Tue, 2 Jan 2024 14:09:11 +0100 Subject: [PATCH] Go mod and sample source --- go.mod | 3 +++ src/greet.go | 7 +++++++ src/main.go | 5 +++++ 3 files changed, 15 insertions(+) create mode 100644 go.mod create mode 100644 src/greet.go create mode 100644 src/main.go diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..bbe2af5 --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module template + +go 1.21.5 diff --git a/src/greet.go b/src/greet.go new file mode 100644 index 0000000..7da9fa1 --- /dev/null +++ b/src/greet.go @@ -0,0 +1,7 @@ +package main + +import "fmt" + +func greet() { + fmt.Println("Hello World!") +} diff --git a/src/main.go b/src/main.go new file mode 100644 index 0000000..2cebd34 --- /dev/null +++ b/src/main.go @@ -0,0 +1,5 @@ +package main + +func main() { + greet() +}