Add initial Go server skeleton with HTTP handlers, middleware, job runner, and stubs
This commit is contained in:
18
Makefile
Normal file
18
Makefile
Normal file
@@ -0,0 +1,18 @@
|
||||
APP=appliance
|
||||
SRC=./cmd/appliance
|
||||
|
||||
run:
|
||||
go run $(SRC)
|
||||
|
||||
build:
|
||||
go build -o bin/$(APP) $(SRC)
|
||||
|
||||
test:
|
||||
go test ./... -v
|
||||
|
||||
lint:
|
||||
@which golangci-lint > /dev/null || (echo "golangci-lint not found; visit https://golangci-lint.run/"; exit 0)
|
||||
golangci-lint run
|
||||
|
||||
clean:
|
||||
rm -rf bin
|
||||
Reference in New Issue
Block a user