GOFMT ?= gofmt "-s" GOFILES := $(shell find . -name "*.go") .PHONY: fmt fmt: # 格式優化 $(GOFMT) -w $(GOFILES) goimports -w ./ golangci-lint run