Makefile 253 B

123456789101112131415
  1. help:
  2. @echo "test run test"
  3. @echo "lint run lint"
  4. .PHONY: test
  5. test:
  6. go test -v -cover -coverprofile cover.out
  7. go tool cover -html=cover.out -o cover.html
  8. .PHONY: lint
  9. lint:
  10. gofmt -s -w .
  11. goimports -w .
  12. golint .
  13. go vet