From 68ee048b76acd0ec1155156b90880691c2410078 Mon Sep 17 00:00:00 2001 From: Ian Fijolek Date: Thu, 3 Oct 2019 12:56:03 -0700 Subject: [PATCH] Add mod and Makefile to speed development --- .gitignore | 4 ++++ Makefile | 22 ++++++++++++++++++++++ go.mod | 5 +++++ go.sum | 3 +++ 4 files changed, 34 insertions(+) create mode 100644 Makefile create mode 100644 go.mod create mode 100644 go.sum diff --git a/.gitignore b/.gitignore index 5302387..a7dca91 100644 --- a/.gitignore +++ b/.gitignore @@ -12,4 +12,8 @@ # Output of the go coverage tool, specifically when used with LiteIDE *.out +# User configuration config.yml + +# Output binary +minitor-go diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..73bd2e7 --- /dev/null +++ b/Makefile @@ -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 diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..1008de3 --- /dev/null +++ b/go.mod @@ -0,0 +1,5 @@ +module git.iamthefij.com/iamthefij/minitor-go + +go 1.12 + +require gopkg.in/yaml.v2 v2.2.4 diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..3e79157 --- /dev/null +++ b/go.sum @@ -0,0 +1,3 @@ +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/yaml.v2 v2.2.4 h1:/eiJrUcujPVeJ3xlSWaiNi3uSVmDGBK1pDHUHAnao1I= +gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=