Knowledge
Search knowledge... ⌘K
Knowledge · Guidelines · go
Implementation Patterns
Define standard implementation patterns for Go services across all internal projects
Metadata
go
Description
This document defines the standard implementation patterns used across all
internal projects (hub, shredbx, bestays-internal). Following these patterns
ensures consistency, maintainability, and allows new entities to be added
with minimal boilerplate.
Key Principles:
- Schema-First: Define YAML schema before writing code
- Service Pattern: Each domain has a Service struct with CRUD methods
- Input Types: Create explicit Input structs for mutations
- Error Handling: Return wrapped errors with context
- Directory Convention: Use standard paths for entities/services
Rules
- —
- —
- —
- —
- —
- —
- —
- —