Add mod and Makefile to speed development
This commit is contained in:
Vendored
+4
@@ -12,4 +12,8 @@
|
||||
# Output of the go coverage tool, specifically when used with LiteIDE
|
||||
*.out
|
||||
|
||||
# User configuration
|
||||
config.yml
|
||||
|
||||
# Output binary
|
||||
minitor-go
|
||||
|
||||
@@ -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
|
||||
@@ -0,0 +1,5 @@
|
||||
module git.iamthefij.com/iamthefij/minitor-go
|
||||
|
||||
go 1.12
|
||||
|
||||
require gopkg.in/yaml.v2 v2.2.4
|
||||
Reference in New Issue
Block a user