百科.dev
全部条目趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
C

chi

> 编程语言
开源

建造 Go HTTP 服务的轻量级、平庸和可堆肥路由器

22.6K stars0 点赞0 次浏览
访问官网GitHub

工具介绍

建造 Go HTTP 服务的轻量级、平庸和可堆肥路由器

[! [GoDoc Widget] [GoDoc] chi是用于建设Go HTTP服务的轻量级,平庸和可相容的路由器. 它特别能帮助您写出大型的REST API服务,随着您的项目的发展和变化,这些服务可以保持维护. chi是建立在Go 1.7中引入的新上下文包之上的,用于处理跨处理器链的信号、取消和请求范围值。 该项目的重点是为写作REST API服务器寻找优雅而舒适的设计,在Pressly API服务开发期间编写,授权我们的公共API服务,这反过来又授权我们所有客户端应用. Chi设计的主要考虑因素有:项目结构,可维护性,标准的http处理器(只使用Stdlib),开发者生产率,以及将一个大系统分解成许多小部分. 核心路由器GitHub.com/go-chi/chi相当小(le

核心特点

  • •Lightweight - cloc'd in ~1000 LOC for the chi router
  • •Fast - yes, see benchmarks
  • •100% compatible with net/http - use any http or middleware pkg in the ecosystem that is also compatible with net/http
  • •Designed for modular/composable APIs - middlewares, inline middlewares, route groups and sub-router mounting
  • •Context control - built on new context package, providing value chaining, cancellations and timeouts
  • •Robust - in production at Pressly, Cloudflare, Heroku, 99Designs, and many others (see discussion)
  • •Doc generation - docgen auto-generates routing documentation from your source to JSON or Markdown
  • •Go.mod support - as of v5, go.mod support (see CHANGELOG)
  • •No external dependencies - plain ol' Go stdlib + net/http

> 标签

Goapicontextgogolang

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月9日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言