Transform SQL schemas into production-ready Go microservices with hexagonal architecture.
Generate complete Go services from your database schema in seconds. Includes REST API, database migrations, Docker setup, and clean architecture.
When you need a Go microservice, the architecture choice should be obvious:
- Obviously correct - True hexagonal architecture, not just layered naming
- Obviously clean - Unified interfaces, complete DTO mapping, comprehensive linting
- Obviously testable - Every layer mockable through proper interface separation
- Obviously maintainable - Clear layer boundaries with consolidated adapter files
- Obviously production-ready - Docker integration, health checks, audit trails
- Obviously scalable - Proper dependency inversion enabling easy technology swaps
boGO transforms your SQL schemas into enterprise-grade Go microservices that follow the best practices from day one.
- Enterprise applications requiring clean architecture
- Rapid prototyping with production-quality code
- Learning hexagonal architecture with real examples
- Legacy modernization with proper patterns
- Scalable microservices built right from the start
- Go 1.22+
- PostgreSQL (or use Docker)
- SQL schema file
What gets generated:
- Complete Go microservice with hexagonal architecture
- REST API with full CRUD operations
- Database migrations
- Docker setup with PostgreSQL
- Build scripts and configuration
Your service will be available at:
- API: http://localhost:8080
- Health Check: http://localhost:8080/health
- Endpoints: Auto-generated based on your schema
- REST API: Complete CRUD operations for all tables
- Database: PostgreSQL with GORM, migrations with Goose
- Architecture: Clean hexagonal architecture with dependency inversion
- Validation: Request validation and error handling
- Docker: Complete containerization with PostgreSQL
- Logging: Structured logging with health checks
- Testing: Mockable interfaces for unit testing
For each table in your schema, boGO generates:
Input SQL:
Generated API endpoints:
- Hexagonal Architecture with 4 layers
- REST API with full CRUD operations
- PostgreSQL Integration with migrations
- Docker Containerization ready to deploy
- Testing Framework with mockable interfaces
- Monitoring & Logging with health checks
- Configuration Management via environment variables
From zero to production-ready microservice in seconds!
Built with love for the Go community. Making excellent architecture obvious, because life's too short for bad code.
- Single adapter.go files: Consolidated interfaces per layer for better maintainability
- Application Layer: All repository interfaces in one unified file
- Interactor Layer: All service interfaces in one unified file
- Cleaner imports: Reduced interface sprawl and improved organization
- Automatic field mapping: Marshal/Unmarshal methods generated for all entity fields
- Domain ↔ DTO conversion: Seamless transformation between layers
- Type safety: Full compile-time checking of field mappings
- Consistent API responses: Response wrapper with proper metadata
- Smart pagination: AddMeta implementation with page calculation
- Error standardization: Uniform error responses across all endpoints
- Comprehensive linting: golint integration with automatic installation
- Code generation gates: Stops generation if linting issues detected
- Cross-platform compatibility: Shell scripts for all major platforms
The generator uses external templates in the templates/ directory, making it easy to:
- Modify generated code structure
- Add new features and patterns
- Customize naming conventions
- Extend architecture patterns
- Update response formats and validation rules
boGO is licensed under the BSD 3-Clause License. See LICENSE for details.
What this means:
- Commercial use - Use boGO to generate services for your business
- Modify and distribute - Fork, enhance, and share your improvements
- Generated code is yours - No licensing obligations for your microservices
- Private use - Use internally without disclosure requirements
- Attribution required - Include license notice in redistributions
- Name protection - Cannot use "boGO" name to endorse derived products
boGO - From SQL schema to production-ready Go microservice in seconds.
.png)

