2020-06-09 13:04:44 +00:00
|
|
|
GO ?= go
|
|
|
|
|
|
|
|
.PHONY: fmt
|
|
|
|
fmt:
|
|
|
|
$(GO) fmt ./...
|
|
|
|
|
2020-06-12 17:01:17 +00:00
|
|
|
.PHONY: imp
|
|
|
|
imp:
|
|
|
|
imp -w
|
|
|
|
|
2020-06-09 13:04:44 +00:00
|
|
|
.PHONY: test
|
|
|
|
test:
|
|
|
|
$(GO) test -race ./...
|
|
|
|
|
|
|
|
.PHONY: vet
|
|
|
|
vet:
|
|
|
|
$(GO) vet ./...
|
|
|
|
|
|
|
|
.PHONY: build
|
|
|
|
build:
|
|
|
|
$(GO) build
|
|
|
|
|
2020-06-12 17:01:17 +00:00
|
|
|
.PHONY: check
|
|
|
|
check: generate imp fmt test vet build
|