🇺🇸 English | 🇨🇳 简体中文
Maltose is a Go Web framework based on Gin, designed to improve team development efficiency and code quality. Through convention over configuration, clear layered architecture, and powerful code generation tools, it helps developers quickly build maintainable and scalable enterprise-grade applications.
- 🚀 High Performance: Built on Gin core, ensuring excellent routing and middleware performance.
- 🧱 Modular Design: Clear module separation like
mhttp,mcfg,mlog,mdb, easy to extend and replace. - 🔧 Code Generation: Built-in powerful CLI tools for one-click generation of
model,dao,serviceand other business code. - 🔭 Observability: Native OpenTelemetry integration, providing out-of-the-box distributed tracing and metrics monitoring.
- 🤝 Gin Ecosystem Compatible: Fully compatible with the vast Gin middleware ecosystem, seamless migration.
- 📚 Complete Documentation: Provides comprehensive and well-structured official documentation.
go get -u github.com/graingo/maltoseWe strongly recommend starting your new project with the maltose-quickstart template, which has the recommended project structure already configured for you.
# Clone the quickstart template
git clone https://github.com/graingo/maltose-quickstart.git my-app
# Enter project directory
cd my-app
# (Important) Modify the module name in go.mod to your own project path
go mod edit -module "your/module/path"
# Tidy dependencies
go mod tidy
# Run
go run main.goWe strongly recommend reading the Official Documentation for a complete introduction to the framework, core concepts, component usage, and detailed guides on advanced features.
Maltose is deeply inspired by the excellent open-source project GoFrame in its design. We pay respect and gratitude to its design philosophy in modularity, interface-oriented programming, and engineering practices.
Unlike GoFrame's pursuit of a comprehensive full-featured suite, Maltose aims to be a more lightweight and focused framework. We chose to build on Gin, which has a huge ecosystem and high performance, as our Web core, focusing on backend API development scenarios, and are committed to providing developers with a development experience that has both the engineering advantages of GoFrame and can fully enjoy the Gin ecosystem benefits.
The birth of Maltose would not be possible without the inspiration and support of the following excellent open-source projects:
- GoFrame: Provided excellent engineering ideas and inspiration for layered architecture design.
- Gin: Provided a stable, high-performance Web core.
We hereby express our sincere gratitude to the above projects and all their contributors!
We welcome contributions of any kind! You can:
- Submit bugs or feature suggestions via Issues.
- Submit your code through Pull Requests.
MIT License