backend/pkg/library/errors/Makefile

13 lines
227 B
Makefile

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