From ddbf3da264bdfa4db8c30c2fef2d5830c70db7f6 Mon Sep 17 00:00:00 2001 From: Allen Thomas Varghese Date: Fri, 7 Aug 2020 23:23:29 +0100 Subject: [PATCH] Add make commands for common tasks --- Makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..2068bcad --- /dev/null +++ b/Makefile @@ -0,0 +1,14 @@ +unit: + go test -v -race -test.short ./... + +lint: + go get -u golang.org/x/lint/golint + `go list -f {{.Target}} golang.org/x/lint/golint` -set_exit_status ./... + +format: + gofmt -d -s . + +analysis: + go vet -v ./... + +all: format lint analysis unit