Files
go-easy-utils/Makefile
libin 34373589ae Optimizing the IsDate method (#85)
* version log

* 1

* 1

* 1

* 1

* change log

* change log

* Optimizing the IsDate method

* version log

* unit tests

* unit tests
2024-08-20 15:48:09 +08:00

31 lines
700 B
Makefile

.PHONY:build
build: ## 编译项目
go build -v ./...
.PHONY:test
test: ## 运行测试
go test -v ./...
.PHONY:lint
lint: ## 执行代码静态分析
golangci-lint run
.PHONY:bench
bench: ## 运行基准测试
go test -benchmem -bench .
.PHONY:doc
doc: ## 启动文档服务器
# go install golang.org/x/tools/cmd/godoc@latest
godoc -http=:6060 -play -index
.PHONY:cover
cover: ## 生成测试覆盖率报告
#go tool cover -func=coverage.out
go test -race -coverprofile=coverage.txt -covermode=atomic ./...
.PHONY:help
.DEFAULT_GOAL:=help
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'