Skip to content

Commit 1f076ed

Browse files
committed
add Makefile
1 parent 5ae3190 commit 1f076ed

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Makefile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
SHELL := /bin/bash
2+
3+
.PHONY: all check test
4+
5+
all: check test
6+
7+
check:
8+
go build && go vet && gofmt -s -l .
9+
10+
test:
11+
go test -v -coverprofile coverage.out && go tool cover -html coverage.out -o coverage.html
12+
13+
bench:
14+
go test -bench .

0 commit comments

Comments
 (0)