From a99d624cddb15b80a0da963af301bbd7f96e13de Mon Sep 17 00:00:00 2001 From: Melora Hugues Date: Mon, 25 Nov 2024 18:46:11 +0100 Subject: [PATCH] Init repo structure --- .gitignore | 1 + Makefile | 12 ++++++++++++ cmd/client/main.go | 7 +++++++ cmd/server/main.go | 7 +++++++ go.mod | 3 +++ 5 files changed, 30 insertions(+) create mode 100644 Makefile create mode 100644 cmd/client/main.go create mode 100644 cmd/server/main.go create mode 100644 go.mod diff --git a/.gitignore b/.gitignore index 5b90e79..f04f290 100644 --- a/.gitignore +++ b/.gitignore @@ -25,3 +25,4 @@ go.work.sum # env file .env +build/ \ No newline at end of file diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..963d17f --- /dev/null +++ b/Makefile @@ -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 diff --git a/cmd/client/main.go b/cmd/client/main.go new file mode 100644 index 0000000..c7e0349 --- /dev/null +++ b/cmd/client/main.go @@ -0,0 +1,7 @@ +package main + +import "fmt" + +func main() { + fmt.Println("starting client") +} diff --git a/cmd/server/main.go b/cmd/server/main.go new file mode 100644 index 0000000..1a3c4c6 --- /dev/null +++ b/cmd/server/main.go @@ -0,0 +1,7 @@ +package main + +import "fmt" + +func main() { + fmt.Println("starting server") +} diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..8652463 --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module git.faercol.me/monitoring/sys-exporter + +go 1.23.3