Init repo structure
This commit is contained in:
parent
15f4e4c4c1
commit
a99d624cdd
5 changed files with 30 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -25,3 +25,4 @@ go.work.sum
|
|||
# env file
|
||||
.env
|
||||
|
||||
build/
|
12
Makefile
Normal file
12
Makefile
Normal 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
7
cmd/client/main.go
Normal file
|
@ -0,0 +1,7 @@
|
|||
package main
|
||||
|
||||
import "fmt"
|
||||
|
||||
func main() {
|
||||
fmt.Println("starting client")
|
||||
}
|
7
cmd/server/main.go
Normal file
7
cmd/server/main.go
Normal file
|
@ -0,0 +1,7 @@
|
|||
package main
|
||||
|
||||
import "fmt"
|
||||
|
||||
func main() {
|
||||
fmt.Println("starting server")
|
||||
}
|
3
go.mod
Normal file
3
go.mod
Normal file
|
@ -0,0 +1,3 @@
|
|||
module git.faercol.me/monitoring/sys-exporter
|
||||
|
||||
go 1.23.3
|
Loading…
Reference in a new issue