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