45 Star 300 Fork 75

GVPYoMo / yomo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Makefile 652 Bytes
一键复制 编辑 原始数据 按行查看 历史
C.C 提交于 2023-09-05 10:13 . chore: improve comments (#601)
GO ?= go
GOFMT ?= gofmt "-s"
GOFILES := $(shell find . -name "*.go")
VETPACKAGES ?= $(shell $(GO) list ./... | grep -v /example/)
.PHONY: fmt
fmt:
$(GOFMT) -w $(GOFILES)
.PHONY: vet
vet:
$(GO) vet $(VETPACKAGES)
.PHONY: lint
lint:
revive -exclude example/... -exclude cli/... -exclude vendor/... -exclude TEST -formatter friendly ./...
.PHONY: build
build:
$(GO) build -tags "$(TAGS)" -o bin/yomo -trimpath -ldflags "-s -w" ./cmd/yomo/main.go
.PHONY: test
test:
$(GO) test -race -covermode=atomic $(go list ./... | grep -v /example)
.PHONY: coverage
coverage:
$(GO) test -v -race -coverprofile=coverage.txt -covermode=atomic $(VETPACKAGES)
Go
1
https://gitee.com/yomorun/yomo.git
git@gitee.com:yomorun/yomo.git
yomorun
yomo
yomo
master

搜索帮助