chore(deps): bump github.com/alicebob/miniredis/v2 from 2.36.1 to 2.37.0 (#5444)
Signed-off-by: dependabot[bot] support@github.com Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802032778号
go-zero
go-zero is a web and rpc framework with lots of builtin engineering practices. It’s born to ensure the stability of the busy services with resilience design and has been serving sites with tens of millions of users for years.
🤷 What is go-zero?
English | 简体中文
go-zero (listed in CNCF Landscape: https://landscape.cncf.io/?selected=go-zero) is a web and rpc framework with lots of builtin engineering practices. It’s born to ensure the stability of the busy services with resilience design and has been serving sites with tens of millions of users for years.
go-zero contains simple API description syntax and code generation tool called
goctl. You can generate Go, iOS, Android, Kotlin, Dart, TypeScript, JavaScript from .api files withgoctl.Advantages of go-zero:
Backgrounds of go-zero
In early 2018, we transitioned from a Java+MongoDB monolithic architecture to microservices, choosing:
Design considerations on go-zero
go-zero follows these core design principles:
The implementation and features of go-zero
go-zero integrates engineering best practices:
Architecture with go-zero
Installation
Run the following command under your project:
AI-Native Development
The go-zero team provides AI tooling for Claude, GitHub Copilot, Cursor to generate framework-compliant code.
Three Core Projects
ai-context - Workflow guide for AI assistants
zero-skills - Pattern library with examples
mcp-zero - Code generation tools via Model Context Protocol
Quick Setup
GitHub Copilot
Cursor
Windsurf
Claude Desktop
How It Works
AI assistants use these tools together:
Example: Creating a REST API → AI reads ai-context for workflow → calls mcp-zero to generate code → references zero-skills for patterns → produces production-ready code ✅
Quick Start
Full examples:
Rapid development of microservice systems
Rapid development of microservice systems - multiple RPCs
Install goctl
Ensure goctl is executable and in your $PATH.
Create the API file (greet.api):
Generate .api template:
Generate Go server code
Generated structure:
Run the service:
Default port: 8888 (configurable in etc/greet-api.yaml)
Test with curl:
Response:
Write business logic
Generate client code for multiple languages
Benchmark
Checkout the test code
Documents
Chat group
Join the chat via https://discord.gg/4JQvC5A4Fe
Cloud Native Landscape
go-zero enlisted in the CNCF Cloud Native Landscape.
Give a Star! ⭐
If you like this project or are using it to learn or start your own solution, give it a star to get updates on new releases. Your support matters!