library-go/Makefile

12 lines
209 B
Makefile
Raw Permalink Normal View History

2024-08-27 13:53:58 +00:00
GOFMT ?= gofmt
GOFILES := $(shell find . -name "*.go")
2024-08-20 15:33:20 +00:00
.PHONY: test
test: # 進行測試
go test -v --cover ./...
.PHONY: fmt
fmt: # 格式優化
$(GOFMT) -w $(GOFILES)
goimports -w ./
2024-09-04 20:24:31 +00:00
golangci-lint run