SHORTLIST20
中文
Englishالعربية中文日本語한국어EspañolFrançaisहिन्दी
编程

热门 Go(Golang)Web 框架与 HTTP 路由库

Gin, Fiber, Echo, Beego, chi, gorilla/mux and other ways to build web apps and APIs in Go

更新于 · GitHub stars (stars)

为什么是这20个

Ranked by GitHub stars: how many developers bookmarked the project. Stars measure attention, not speed or fit, so each row also shows forks, licence and the last push. The list mixes three choices Go teams make: minimal HTTP frameworks (Gin, Echo, Fiber, Hertz), batteries-included frameworks with an ORM and scaffolding (Beego, GoFrame, Goravel) and plain routers (chi, gorilla/mux, httprouter) that sit on the standard library's net/http, which many teams prefer to a framework. Fiber and Hertz are built on their own HTTP engines rather than net/http, so standard middleware doesn't plug in directly. Older projects keep stars after activity slows: check the last push. It doesn't show benchmark results.

这份清单有用吗?
  1. 1

    Gin

    Gin is a web framework written in Go! It features a martini-like API with much better performance, up to 40 times faster. If you need performance and good...

    89,578 stars 8,827 forkslast push 2026-10-10GoMIT

  2. 2

    Fiber

    An Express.js inspired web framework build on Fasthttp.

    40,316 stars 2,171 forkslast push 2026-11-25GoMIT

  3. 3

    Echo

    High performance, minimalist Go web framework.

    32,840 stars 2,889 forkslast push 2026-11-20GoMIT

  4. 4

    Beego

    beego is an open-source, high-performance web framework for the Go programming language.

    32,429 stars 5,555 forkslast push 2026-11-13GoNOASSERTION

  5. 5

    chi

    Small, fast and expressive HTTP router built on net/context.

    23,158 stars 1,670 forkslast push 2026-11-07GoMIT

    也在: #1 Go (Golang) HTTP routers

  6. 6

    mux

    Powerful URL router and dispatcher for golang.

    21,830 stars 1,892 forkslast push 2024-08-15GoBSD-3-Clause

    也在: #2 Go (Golang) HTTP routers

  7. 7

    GoFr

    Gofr is an opinionated microservice development framework.

    20,786 stars 1,791 forkslast push 2026-11-25GoApache-2.0

  8. 8

    julienschmidt/httprouter

    High performance router. Use this and the standard http handlers to form a very high performance web framework.

    17,142 stars 1,469 forkslast push 2024-07-22GoBSD-3-Clause

    也在: #3 Go (Golang) HTTP routers

  9. 9

    GoFrame

    GoFrame is a modular, powerful, high-performance and enterprise-class application development framework of Golang.

    13,316 stars 1,734 forkslast push 2026-11-25GoMIT

  10. 10

    Revel

    High-productivity web framework for the Go language.

    13,209 stars 1,347 forkslast push 2023-10-28GoMIT

  11. 11

    Hertz

    A high-performance and strong-extensibility Go HTTP framework that helps developers build microservices.

    7,413 stars 651 forkslast push 2026-10-20GoApache-2.0

  12. 12

    Goa

    Goa provides a holistic approach for developing remote APIs and microservices in Go.

    6,123 stars 584 forkslast push 2026-11-24GoMIT

  13. 13

    goravel

    A Laravel-inspired web framework with ORM, authentication, queue, task scheduling, and more built-in features.

    4,917 stars 279 forkslast push 2026-11-13GoMIT

  14. 14

    Huma

    Framework for modern REST/GraphQL APIs with built-in OpenAPI 3, generated documentation, and a CLI.

    4,562 stars 303 forkslast push 2026-11-21GoMIT

  15. 15

    Goyave

    Feature-complete REST API framework aimed at clean code and fast development, with powerful built-in functionalities.

    1,786 stars 84 forkslast push 2026-11-05GoMIT

  16. 16

    Fuego

    The framework for busy Go developers! Web framework generating OpenAPI 3 spec from source code.

    1,779 stars 129 forkslast push 2026-11-24GoMIT

  17. 17

    gocraft/web

    Mux and middleware package in Go.

    1,522 stars 117 forkslast push 2020-10-01GoMIT

    也在: #4 Go (Golang) HTTP routers

  18. 18

    Atreugo

    High performance and extensible micro web framework with zero memory allocations in hot paths.

    1,301 stars 77 forkslast push 2026-10-20GoApache-2.0

  19. 19

    Bone

    Lightning Fast HTTP Multiplexer.

    1,280 stars 100 forkslast push 2019-05-06GoMIT

    也在: #5 Go (Golang) HTTP routers

  20. 20

    Goji

    Goji is a minimalistic and flexible HTTP request multiplexer with support for.

    973 stars 66 forkslast push 2022-07-26GoMIT

    也在: #6 Go (Golang) HTTP routers

并排比较

GinFiberchi
LicenceMITMITMIT
What it doesHTTP web framework with a Martini-like APIExpress-inspired web framework built on FasthttpLightweight, composable HTTP router
Go versionsGo 1.26 or later per README; pkg.go.dev says 1.25Go 1.26 or higher required (v3 docs)–
MiddlewareExtensible middleware system with built-in recoveryBuilt-in middleware, integrations, storage drivers and template enginesUses standard net/http middleware handlers; optional middleware package
Performance notesZero-allocation router; README claims up to 40x fasterBuilt on fasthttp; designed for zero memory allocationsCore router under about 1000 lines; no external dependencies
Best forREST APIs, web applications, microservices––
net/http compatible––Fully compatible with net/http

如何衡量

Every framework and router in the 'Web Frameworks' section (with its Routers sub-section) of the community list avelino/awesome-go on GitHub with a public GitHub repository, ranked by GitHub stars from the GitHub API; archived repositories are left out. Refreshed every 6 hours. Middleware libraries in the same section, UI component kits (Goshtoso, shadcn-templ), helper libraries (Ginrpc, httpsuite), a commerce add-on (Flamingo Commerce) and a workflow platform (iWF) are left out; projects hosted outside GitHub (Pnutmux on GitLab) have no comparable star count.

参考资料

  1. avelino/awesome-go: Web Frameworks and Routers, GitHub community list (list text MIT; star counts from the GitHub API). Checked 2026-11-25 12:00 UTC.
  2. avelino/awesome-go (Web Frameworks), GitHub community list, 69 tools with a public repository.
  3. Gin: licence, github.com, checked 2026-11-18.
  4. Gin: what it does, github.com, checked 2026-11-18.
  5. Fiber: licence, github.com, checked 2026-11-18.
  6. Fiber: what it does, pkg.go.dev, checked 2026-11-18.
  7. Fiber: go versions, docs.gofiber.io, checked 2026-11-18.
  8. chi: licence, github.com, checked 2026-11-18.
  9. chi: what it does, pkg.go.dev, checked 2026-11-18.
  10. chi: net/http compatible, github.com, checked 2026-11-18.