-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
39 lines (30 loc) · 823 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
CGO_ENABLED?=0
GOAMD64?=v4
clean:
rm -rf bin/
go clean -cache -testcache
format:
go fmt ./...
go run mvdan.cc/gofumpt@latest -w .
go mod tidy
verify:
go mod verify
go run golang.org/x/vuln/cmd/govulncheck@latest ./...
check:
go vet ./...
go run github.com/golangci/golangci-lint/cmd/golangci-lint@latest run ./...
go run honnef.co/go/tools/cmd/staticcheck@latest -checks all ./...
go run go.uber.org/nilaway/cmd/nilaway@latest ./...
go run golang.org/x/tools/cmd/deadcode@latest -test ./...
test:
go test -vet off -count 1 -cover ./...
bench:
go test -vet off -run ^$$ -bench . -benchtime 30s -benchmem ./...
cover:
go test -vet off -cover -coverprofile cover.out ./...
go tool cover -html cover.out
rm -f cover.out
docs:
go run golang.org/x/tools/cmd/godoc@latest
build:
go build -o bin/ ./...