代码拉取完成,页面将自动刷新
SHELL := /bin/bash
.PHONY: \
help \
coverage \
vet \
lint \
fmt \
version
all: imports fmt lint vet errors build
help:
@echo 'Usage: make <OPTIONS> ... <TARGETS>'
@echo ''
@echo 'Available targets are:'
@echo ''
@echo ' help Show this help screen.'
@echo ' coverage Report code tests coverage.'
@echo ' vet Run go vet.'
@echo ' lint Run golint.'
@echo ' fmt Run go fmt.'
@echo ' version Display Go version.'
@echo ''
@echo 'Targets run by default are: lint, vet.'
@echo ''
print-%:
@echo $* = $($*)
deps:
go get golang.org/x/lint/golint
coverage:
go test $(go list ./... | grep -v examples) -coverprofile coverage.txt ./...
vet:
go vet ./...
lint: deps
golint ./...
fmt:
go install mvdan.cc/gofumpt@latest
gofumpt -l -w -extra .
pre-dev:
make pre-commit
pre-commit:
bash script/pre-commit-hook
release: package-release sign-release
version:
@go version
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。