Add format_docs command for documentation trailing space formatting

This commit is contained in:
世界 committed 2026-01-17 05:48:39 +08:00
1 parent bf4a9edc89
commit 8ae16aa452
2 files changed
+120

No files matched your search

+3
View File
@@ -37,6 +37,9 @@ fmt:
@gofmt -s -w .
@gci write --custom-order -s standard -s "prefix(github.com/sagernet/)" -s "default" .
fmt_docs:
go run ./cmd/internal/format_docs
fmt_install:
go install -v mvdan.cc/gofumpt@latest
go install -v github.com/daixiang0/gci@latest