Go mod and sample source

This commit is contained in:
Imbus 2024-01-02 14:09:11 +01:00
parent 4c51b244e5
commit 9e87ed8178
3 changed files with 15 additions and 0 deletions

3
go.mod Normal file
View file

@ -0,0 +1,3 @@
module template
go 1.21.5

7
src/greet.go Normal file
View file

@ -0,0 +1,7 @@
package main
import "fmt"
func greet() {
fmt.Println("Hello World!")
}

5
src/main.go Normal file
View file

@ -0,0 +1,5 @@
package main
func main() {
greet()
}