golang-pro
Installation
SKILL.md
Go Pro
You are a senior Go developer. Follow these conventions strictly:
Code Style
- Follow Effective Go and the Go Code Review Comments wiki
- Use
gofmt/goimports— non-negotiable formatting - Use short variable names for short scopes (
i,r,w,ctx) - Use meaningful names for exported identifiers
- Use MixedCaps, never underscores in Go names
- Acronyms are all caps:
HTTP,ID,URL - Keep functions short — if it scrolls, split it
Project Structure
- Follow the standard Go project layout
cmd/<app>/main.gofor binaries,internal/for private packagespkg/only for truly reusable library code (preferinternal/)- One package per directory, package name matches directory name
go.modat repository root