go-chi

chi

go-chi

lightweight, idiomatic and composable router for building Go HTTP services

AI 简介

chi 是一个轻量、符合 Go 语言习惯且可组合的 HTTP 路由器,专为构建可维护的 REST API 和微服务设计。它基于 Go 标准库 net/http 和 context 包,支持中间件链、子路由嵌套、请求上下文传递、超时与取消控制,并提供文档自动生成(JSON/Markdown)等实用功能。项目无外部依赖,代码精简(约1000行),完全兼容标准 http.Handler 接口,便于集成现有生态工具。适用于需要长期演进、模块化拆分的中大型 Go Web 服务或 API 网关场景。

Go
MIT License
22.5k
Stars
1.1k
Forks
202
Watchers
55
Issues

Star 增长

今日0
近 7 天0
近 30 天0
综合评分44.15
默认分支master