补充实现细节

This commit is contained in:
dragon
2025-01-07 17:30:47 +08:00
parent 0172dceaa8
commit b617127a8b
7 changed files with 80 additions and 12 deletions

View File

@@ -1,3 +1,11 @@
fmt:
@(test -f "$(GOPATH)/bin/gofumpt" || go install mvdan.cc/gofumpt@latest) && \
"$(GOPATH)/bin/gofumpt" -l -w .
"$(GOPATH)/bin/gofumpt" -l -w .
gitea-pages: $(shell find . -type f -name "*.go" ) go.mod go.sum
@CGO_ENABLED=0 go build -o $@ .
.PHONY: debug
debug: gitea-pages
@./gitea-pages -conf config-local.yaml -debug