Add Makefile to make checks with vet and golint

This commit is contained in:
Christian Claus 2018-04-09 13:18:34 +02:00
parent f102654a22
commit cc750494b3

10
Makefile Normal file
View file

@ -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}