What problem does it solve?
Go backend development for LLMProxy often lacks consistent patterns, reliable error handling, and performance-oriented guidance. This skill provides pragmatic Go backend practices tailored for building reliable proxy services and HTTP handlers.
Core Features & Use Cases
- Standard Handler Patterns: Structuring HTTP handlers with validation, business logic, and consistent responses.
- Middleware & Routing: Reusable middleware for logging, recovery, auth, and rate limiting.
- Error Handling & Logging: Centralized error types and structured logging to simplify debugging in production.
- Database & Transactions: Repositories and transactional patterns for safe data operations.
- Performance Best Practices: Connection pooling, context timeouts, and object pooling for throughput.
- Testing Patterns: Unit and integration tests for handlers and services.
Quick Start
Apply these patterns to your Go backend code to implement robust handlers, middleware, and data access for LLMProxy.