Init repo structure

This commit is contained in:
Melora Hugues 2024-11-25 18:46:11 +01:00
parent 15f4e4c4c1
commit a99d624cdd
5 changed files with 30 additions and 0 deletions

1
.gitignore vendored
View file

@ -25,3 +25,4 @@ go.work.sum
# env file
.env
build/

12
Makefile Normal file
View file

@ -0,0 +1,12 @@
.PHONY: all client server
all: client server
clean:
rm -rf ./build
client:
go build -o ./build/client ./cmd/client
server:
go build -o ./build/server ./cmd/server

7
cmd/client/main.go Normal file
View file

@ -0,0 +1,7 @@
package main
import "fmt"
func main() {
fmt.Println("starting client")
}

7
cmd/server/main.go Normal file
View file

@ -0,0 +1,7 @@
package main
import "fmt"
func main() {
fmt.Println("starting server")
}

3
go.mod Normal file
View file

@ -0,0 +1,3 @@
module git.faercol.me/monitoring/sys-exporter
go 1.23.3