重构项目
This commit is contained in:
5
Makefile
5
Makefile
@@ -54,3 +54,8 @@ lint:
|
||||
lint-fix:
|
||||
@(test -f "$(GOPATH)/bin/golangci-lint" || go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.6.0) && \
|
||||
"$(GOPATH)/bin/golangci-lint" run -c .golangci.yml --fix
|
||||
|
||||
EXAMPLE_DIRS := $(shell find examples -maxdepth 1 -type d ! -path "examples" | sort)
|
||||
.PHONY: $(EXAMPLE_DIRS)
|
||||
$(EXAMPLE_DIRS):
|
||||
@go run ./cmd/local/main.go -path $@
|
||||
Reference in New Issue
Block a user