1GOCMD=GO111MODULE=on go
2
3linters-install:
4	@golangci-lint --version >/dev/null 2>&1 || { \
5		echo "installing linting tools..."; \
6		curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s v1.21.0; \
7	}
8
9lint: linters-install
10	$(PWD)/bin/golangci-lint run
11
12test:
13	$(GOCMD) test -cover -race ./...
14
15bench:
16	$(GOCMD) test -bench=. -benchmem ./...
17
18.PHONY: test lint linters-install