Add mod and Makefile to speed development

This commit is contained in:
Ian Fijolek
2019-10-03 12:56:03 -07:00
parent 88b718cb59
commit 68ee048b76
4 changed files with 34 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
.PHONY: test
default: test
.PHONY: build
build:
minitor-go:
go build
.PHONY: run
run: minitor-go
./minitor-go
.PHONY: test
test:
go test -coverprofile=coverage.out
go tool cover -func=coverage.out
.PHONY: clean
clean:
rm -f ./minitor-go
rm -f ./coverage.out