Go Function Design & Organization

•
77
•

Implements idiomatic Go function organization, signature formatting, and naming conventions based on Google and Uber style guides.

The Go Function Design skill provides Claude with the domain-specific knowledge required to write production-ready, idiomatic Go code. It focuses on the structural aspects of function development, such as logical file ordering (Type -> Constructor -> Exported), clean multi-line signature wrapping, and the correct use of interface values. By distilling wisdom from Effective Go and major corporate style guides, this skill helps developers avoid common pitfalls like pointers to interfaces or ambiguous naked parameters, resulting in a more maintainable and professional codebase.

主な機能

0177 GitHub stars
02Readability-focused multi-line signature formatting with trailing commas
03Interface-by-value enforcement to prevent pointer misuse
04Standardized file organization and function grouping by call order
05Printf-style naming conventions for go vet compatibility
06Safe string formatting guidelines using %q for logs and errors

ユースケース

01Implementing production-ready constructors and utility functions
02Refactoring messy Go files to follow logical function ordering
03Standardizing complex function signatures across a Go project