library-go/Makefile

13 lines
192 B
Makefile
Raw Normal View History

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 ./