Project Structure
Project Structure
Section titled “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 entrypointRecommended Practices
Section titled “Recommended Practices”- Keep shared dependencies in
svc.ServiceContext - Keep handlers thin and move business flow into logic modules
- Keep config values explicit and deployment-friendly