Compare commits

...

2 commits

Author SHA1 Message Date
Imbus
fd798451f4 Makefile with basic targets 2024-01-02 14:09:29 +01:00
Imbus
9e87ed8178 Go mod and sample source 2024-01-02 14:09:11 +01:00
4 changed files with 26 additions and 0 deletions

3
go.mod Normal file
View file

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

11
makefile Normal file
View file

@ -0,0 +1,11 @@
run:
go run src/*.go
build:
go build -o bin/main src/main.go
clean:
rm -rf bin/*
format:
go fmt src/*.go

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()
}