2 Star 8 Fork 2

CloudWeGo / hertz

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Makefile 991 Bytes
一键复制 编辑 原始数据 按行查看 历史
gaowenju 提交于 2022-05-31 15:34 . Initial commit
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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/cloudwego/hertz.git
git@gitee.com:cloudwego/hertz.git
cloudwego
hertz
hertz
develop

搜索帮助

344bd9b3 5694891 D2dac590 5694891