diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..6ba410a --- /dev/null +++ b/Makefile @@ -0,0 +1,10 @@ +.PHONY: fmt check + +SRC = $(shell find . -type f -name '*.go' -not -path "./vendor/*") + +fmt: + @gofmt -s -l -w $(SRC) + +check: + @for i in $$(go list ./... | grep -v /vendor/); do golint $${i}; done + @go tool vet ${SRC}