go-service-bootstrap
Installation
SKILL.md
When to Use
- Setting up
main.goto wire all dependencies - Adding environment-based configuration
- Managing secrets (DB passwords, API keys)
- Deciding what changes between local/dev/staging/prod
- Adding a new adapter/implementation swap
- Setting up docker-compose profiles
Critical Patterns
| Pattern | Rule |
|---|---|
| Manual DI | No DI frameworks (no Wire, no Dig) — Go's simplicity is the feature |
| Constructor injection | All dependencies via NewXxx(deps...) constructors |
| Config from environment | All configuration from env vars, no config files in production |
| Secrets via env | Secrets injected via environment, never hardcoded or in repo |
Related skills