Skip to content

Project Structure

greet/
├── etc/ # Config files
├── internal/
│ ├── config/ # Typed config structures
│ ├── handler/ # Request binding and routing
│ ├── logic/ # Business logic implementation
│ ├── svc/ # Dependency injection context
│ └── types/ # Request/response models
└── greet.go # Service entrypoint
  • Keep shared dependencies in svc.ServiceContext
  • Keep handlers thin and move business flow into logic modules
  • Keep config values explicit and deployment-friendly