summaryrefslogtreecommitdiff
path: root/Magefile.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-03-16 03:56:58 +0200
committerPaul Buetow <paul@buetow.org>2026-03-16 03:56:58 +0200
commit180ffa0c42002603ebbca56ddc98cb2d7fb71b04 (patch)
treef36184a6799dd853256e0f0468694d3660fdf179 /Magefile.go
parent35f1097f473e51be82f68e93ea2db48dd1c98519 (diff)
Add gofumpt formatting target to Magefile
Add 'mage fmt' target that runs gofumpt -w on the project. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'Magefile.go')
-rw-r--r--Magefile.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/Magefile.go b/Magefile.go
index 4d79079..2850150 100644
--- a/Magefile.go
+++ b/Magefile.go
@@ -248,6 +248,11 @@ func Coverage() error {
return nil
}
+// Fmt formats all Go source files using gofumpt.
+func Fmt() error {
+ return sh.RunV("gofumpt", "-w", ".")
+}
+
// Vet runs go vet.
func Vet() error {
return sh.RunV("go", "vet", "./...")