The Most Popular Go Frameworks in 2026
Updated November 2026. I first wrote this list in 2022. Go has changed enough since then that the first answer is different now, so I rewrote it: new star counts, projects that slowed down, and a section for building with LLMs.
A framework is an opinionated way of building something that someone else has already thought through and shared. In most languages the first question is which web framework to pick. In Go the first question is whether you need one at all.
So I’ll start there, then go through the frameworks I’d actually reach for: web, microservices, command-line tools, desktop apps, static sites, scraping, and machine learning and LLM apps.
Do you need a web framework in Go?
Often, no. Since Go 1.22 the standard library’s router understands HTTP methods and path parameters, which was the main reason people reached for a framework in the first place. Here is a whole server:
package main
import (
"fmt"
"log"
"net/http"
)
func main() {
mux := http.NewServeMux()
mux.HandleFunc("GET /hello/{name}", func(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "hello, %s\n", r.PathValue("name"))
})
log.Fatal(http.ListenAndServe(":8091", mux))
}
Run it with go run . and ask it something:
$ curl localhost:8091/hello/toul
hello, toul
$ curl -i -X POST localhost:8091/hello/toul
HTTP/1.1 405 Method Not Allowed
Allow: GET, HEAD
The method is checked for you and the path value comes out with r.PathValue. No dependencies. For a small API or a backend for a single page app, this is where I start now.
A framework starts earning its place when you want a lot of middleware ready to go, request binding and validation, or generated API docs. That’s what the rest of this list is for.
Web frameworks
Ordered by GitHub stars, which I still use as a rough signal: more stars usually means more people who have hit your problem before you. The numbers are from November 11, 2026.
| Framework | Stars | Built on | License |
|---|---|---|---|
| Gin | 89.5k | net/http | MIT |
| Fiber | 40.3k | fasthttp | MIT |
| Echo | 32.8k | net/http | MIT |
| Beego | 32.4k | net/http | Apache-2.0 |
| Iris | 25.6k | net/http | BSD-3-Clause |
| Chi | 23.1k | net/http | MIT |
| Encore | 12.7k | its own runtime | MPL-2.0 |
| Buffalo | 8.4k | net/http | MIT |
| Hertz | 7.4k | its own network layer | Apache-2.0 |
| Huma | 4.5k | your router of choice | MIT |
Gin
Still the most popular, by a long way. Gin gives you a fast router, middleware, JSON binding and validation, and a huge pile of examples and answered questions. If a team wants one framework everyone already knows, it’s Gin. It was my pick in 2022 and it’s still the safe default for a CRUD app.
Fiber
Fiber is modeled on Express, so if you’re coming from Node it will feel familiar on day one. The thing to know is that it’s built on fasthttp rather than the standard net/http. That’s where its speed comes from, and it’s also why some net/http middleware needs an adaptor. Fiber v3 accepts plain net/http handlers directly, which makes mixing the two much easier than it used to be.
Echo
Echo sits between Gin and the standard library: small, fast, well documented, with good built-in middleware and automatic TLS. In 2022 I listed it under microservices. That was wrong; it’s a web framework, and a good one for REST APIs.
Chi
Chi is a router, not a framework, and that’s the point. Handlers are plain net/http handlers, so everything in the standard library and every net/http middleware just works. When the standard library’s router isn’t enough (route groups, a middleware stack per group) and I still don’t want a framework, I add Chi.
Beego and Iris
Both are full featured, and Beego is especially big in China. Beego comes with an ORM, caching, logging and a code generator. Iris leans hard into performance and HTTP/2. I haven’t shipped either in production, but both are actively maintained and worth a look if you want everything in one box.
Huma and Encore
Two newer ideas. Huma lets you describe your API as Go types and gives you request validation and an OpenAPI 3.1 document for free, on top of whatever router you already use. Encore goes further: you write Go (or TypeScript) and it sets up the infrastructure around it, locally and in your cloud. Pick Huma if you want API docs that can’t drift from the code, Encore if you want to stop writing infrastructure config.
Buffalo, and what happened to Revel
Buffalo is the closest thing Go has to Rails, with generators for almost everything. It’s still my suggestion for someone coming from Ruby, though it moves more slowly than it used to.
Revel was on my 2022 list. Its last commit was in October 2023, so I would not start a new project on it.
Microservices frameworks
| Framework | Stars | What it gives you |
|---|---|---|
| go-zero | 33.4k | code generation with the goctl tool, built-in resilience |
| go-kit | 27.4k | a toolkit, not a framework; last commit July 2024 |
| Kratos | 26.0k | gRPC and HTTP services, not tied to one infrastructure |
| go-micro | 23.1k | RPC, service discovery, messaging, and now agents |
go-zero is the one I’d try first if you want to write less code: goctl generates the service, and it can generate client code for several languages too. Kratos is a solid choice if your services talk gRPC. go-micro has changed direction since 2022 and now calls itself a framework for agents, tools and services, with a gateway that exposes your services over HTTP and MCP. go-kit was the classic, and it still works, but it’s quiet now.
Command-line tools
Go is great at CLIs because the result is a single binary you can hand to anyone.
| Library | Stars | Best for |
|---|---|---|
| Bubble Tea | 45.7k | full-screen terminal apps (TUIs) |
| Cobra | 44.8k | big CLIs with subcommands: kubectl, Hugo, the GitHub CLI |
| urfave/cli | 24.3k | small to medium CLIs, declared as data |
| Kong | 3.2k | CLIs described as a Go struct |
Cobra is still the one to know. It handles subcommands, flags, help text and shell completion, and it’s what a lot of the cloud’s command-line tools are built on. Bubble Tea is for when the terminal itself is the app, with menus and live views. And for a tool with three flags, the standard library’s flag package is plenty.
Desktop apps
| Framework | Stars | How it draws the UI |
|---|---|---|
| Wails | 37.1k | a web front end (Svelte, React, Vue) in the system webview |
| Fyne | 28.8k | its own widgets, drawn in Go |
Wails is still my favorite. You write the back end in Go and the front end with whatever web framework you like, and it ships as a native app without bundling a whole browser the way Electron does. I won a hackathon with Wails and Svelte, and I wrote up building a desktop app with Wails and Svelte. Fyne is the pick if you’d rather write the UI in Go too.
Static sites
Hugo (90.4k stars) is the fastest static site generator I’ve used, and one of the most starred Go projects anywhere. This site is built with it. If you want a blog or a docs site without running a server, start here. For an app that needs a little back end, I wrote about pairing Hugo with Go on AWS Lambda.
Web scraping
Colly (25.6k stars) is the one for crawling regular HTML pages: it handles cookies, caching, rate limits and parallel requests per domain. When the page builds itself with JavaScript, Colly only sees the empty shell, so reach for chromedp (13.4k stars), which drives a real Chrome. Either way, check the site’s terms and robots.txt first.
Machine learning and LLM apps
This is the section that changed most.
For classic machine learning in Go, Gorgonia (5.9k stars) was the name in 2022, but its last commit was in August 2024. GoMLX (1.7k stars) is the active one now, an accelerated machine-learning framework for Go. Training models is still mostly a Python job, though.
Where Go has become genuinely good is building apps on top of language models. A lot of the tooling is written in Go already: Ollama, which runs models on your own machine, is a Go program.
| Library | Stars | What it’s for |
|---|---|---|
| Eino | 13.6k | LLM app framework from CloudWeGo: chains, agents, tools |
| LangChainGo | 9.8k | the LangChain ideas, in Go |
| mcp-go | 9.2k | Model Context Protocol servers and clients |
| Genkit | 6.6k | Google’s framework for agent apps; Go is one of its SDKs |
| MCP Go SDK | 5.3k | the official MCP SDK, maintained with Google |
If you’re giving a model tools, the MCP libraries are where to start. And since that’s the work I do, one warning I’ll repeat from my AI Security Engineering series: a framework makes it easy to wire a model to tools, and that is exactly what makes it dangerous. Read about the lethal trifecta before you hand an agent your inbox.
What I’d pick in 2026
- A small API: the standard library, and Chi when I want route groups.
- A CRUD app with a team: Gin.
- Coming from Node: Fiber.
- API docs that stay in sync: Huma.
- Microservices: go-zero, or Kratos for gRPC.
- A CLI: Cobra, or Bubble Tea for a TUI.
- A desktop app: Wails.
- A blog or docs site: Hugo.
- An LLM app: an MCP SDK plus the standard library, and Eino if I want the batteries.
If you’re new to Go and want to learn by building small, practical things like these, that’s what my free book Automate the Boring Stuff with Go is for.