1 Star 0 Fork 1

liuxuezhan / id-validator

forked from guanguans / id-validator 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Makefile 492 Bytes
一键复制 编辑 原始数据 按行查看 历史
guanguans 提交于 2021-01-25 17:06 . Add bench testing
# note: call scripts from /scripts
GOCMD=GO111MODULE=on go
LOCALCMD=/usr/local
linters-install:
@golangci-lint --version >/dev/null 2>&1 || { \
echo "installing linting tools..."; \
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s v1.21.0; \
}
lint: linters-install
$(LOCALCMD)/bin/golangci-lint run
fmt:
$(GOCMD) fmt ./...
vet:
$(GOCMD) vet ./.
test:
$(GOCMD) test -cover -race ./...
bench:
$(GOCMD) test -bench=. -benchmem ./...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/liuxuezhan/id-validator.git
git@gitee.com:liuxuezhan/id-validator.git
liuxuezhan
id-validator
id-validator
main

搜索帮助

344bd9b3 5694891 D2dac590 5694891