Files
everything-claude-code/.cursor/rules/golang-hooks.md

466 B

description, globs, alwaysApply
description globs alwaysApply
Go hooks: gofmt/goimports auto-format, go vet, staticcheck
**/*.go
false

Go Hooks

This file extends common/hooks.md with Go specific content.

PostToolUse Hooks

Configure in ~/.claude/settings.json:

  • gofmt/goimports: Auto-format .go files after edit
  • go vet: Run static analysis after editing .go files
  • staticcheck: Run extended static checks on modified packages