This commit is contained in:
2026-05-30 09:24:42 +08:00
parent 6c3de4b2ef
commit e054f458bb
17 changed files with 533 additions and 78 deletions

View File

@@ -38,7 +38,25 @@ release: clean
@make darwin GOARCH=amd64
@make darwin GOARCH=arm64
## fmt: Format Go source code
fmt:
@go fmt ./...
## vet: Run go vet
vet:
@go vet ./...
## tidy: Tidy and verify Go modules
tidy:
@go mod tidy
@go mod verify
## lint: Run fmt, vet and build as basic linting
lint: fmt vet
@go build -o /dev/null .
@echo "Linting complete"
## help: Show this message and exit
help: Makefile
@echo "Available recipes:"
@sed -n 's/^##//p' $< | column -t -s ':' | sed -e 's/^/ /'
@sed -n 's/^## //p' $< | column -t -s ':'