29 Star 217 Fork 52

Ambor / zpan

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Makefile 996 Bytes
一键复制 编辑 原始数据 按行查看 历史
.PHONY: all dep lint vet test test-coverage build clean
# custom define
PROJECT := zpan
MAINFILE := main.go
all: build
mod: ## Get the dependencies
go mod download
lint: ## Lint Golang files
@golangci-lint --version
@golangci-lint run -D errcheck
test: ## Run tests with coverage
go test -coverprofile .coverprofile ./...
go tool cover --func=.coverprofile
coverage-html: ## show coverage by the html
go tool cover -html=.coverprofile
generate: ## generate the static assets
go generate ./...
build: mod ## Build the binary file
go build -v -o build/bin/$(PROJECT) $(MAINFILE)
swag:
swag init -g internal/app/api/router.go --exclude client --parseDependency --parseDepth 1 --output internal/docs
install:
# 复制二进制文件
# 复制默认配置文件
clean: ## Remove previous build
@rm -rf ./build
help: ## Display this help screen
@grep -h -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
Go
1
https://gitee.com/saltbo/zpan.git
git@gitee.com:saltbo/zpan.git
saltbo
zpan
zpan
master

搜索帮助