Skip to content

Conversation

@robzolkos
Copy link
Owner

Summary

  • Adds a Claude Code PostToolUse hook that runs gofmt on any .go file after Edit or Write operations
  • Ensures consistent Go formatting across the team when using Claude Code

Test plan

  • Verified hook runs automatically after editing Go files
  • Verified badly formatted code gets auto-corrected
  • Verified non-Go files are unaffected

Adds a PostToolUse hook that runs gofmt on any .go file after
Edit or Write operations, ensuring consistent formatting.
@robzolkos robzolkos merged commit 18d2254 into master Jan 24, 2026
1 check passed
@robzolkos robzolkos deleted the add-go-format-hook branch January 24, 2026 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant