first to commit project
This commit is contained in:
20
Makefile
Normal file
20
Makefile
Normal file
@@ -0,0 +1,20 @@
|
||||
help:
|
||||
@echo "test run test"
|
||||
@echo "lint run lint"
|
||||
@echo "example run examples"
|
||||
|
||||
.PHONY: test
|
||||
test:
|
||||
go test -v -cover -coverprofile cover.out
|
||||
go tool cover -html=cover.out -o cover.html
|
||||
|
||||
.PHONY: lint
|
||||
lint:
|
||||
gofmt -s -w .
|
||||
goimports -w .
|
||||
golint .
|
||||
go vet
|
||||
|
||||
.PHONY: example
|
||||
example:
|
||||
cd examples && sh test.sh
|
||||
Reference in New Issue
Block a user