skills/smithery.ai/hoangnguyen0403-language

hoangnguyen0403-language

Installation
SKILL.md

Golang Language Standards

Priority: P0 (CRITICAL)

Guidelines

  • Fmt: Run gofmt or goimports on save.
  • Naming: Use camelCase for internal, PascalCase for exported.
  • Packages: Short, lowercase, singular, no underscores (e.g., net/http not net_http).
  • Interfaces: Define where used, not where implemented. Small interfaces (1-2 methods).
  • Errors: Return error as last return value. Handle immediately.
  • Variables: Short names for small scope (i, ctx), descriptive for large scope.
  • Slices: Prefer slices over arrays. Use make() for capacity.
  • Const: Use iota for enums.

Anti-Patterns

Installs
1
First Seen
Mar 3, 2026
hoangnguyen0403-language from smithery.ai