cli/docs/cmd/go/fmt/index.md
Snider dea8f59c10 docs: sync core dev and core go with CLI
Updated by technical writer agents:
- core dev: added task management, api, sync, ci commands
- core dev: fixed all flag discrepancies
- core go: added work subcommands (init, sync, use)
- core go: added missing flags (--json, --check, --open, --threshold)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 16:10:23 +00:00

422 B

core go fmt

Format Go code using goimports or gofmt.

Usage

core go fmt [flags]

Flags

Flag Description
--fix Fix formatting in place
--diff Show diff of changes
--check Check only, exit 1 if not formatted

Examples

core go fmt           # Check formatting
core go fmt --fix     # Fix formatting
core go fmt --diff    # Show diff