what's your recommended router? chi, mux, something else?

This page summarizes the projects mentioned and recommended in the original post on /r/golang

InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  1. httprouter

    A high performance HTTP request router that scales well

    But, if you care about speed take a look at httprouter. That's the one we're using in our company. It's fast but the biggest downsides for me are:

  2. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  3. waggy

    The dead simple, easy-to-use library for writing HTTP handlers and routers in Go that can be used in standard HTTP server environments or in WAGI (Web Assembly Gateway Interface) environments

    Chi for work, my own router for personal projects

  4. Gin

    Gin is a HTTP web framework written in Go (Golang). It features a Martini-like API with much better performance -- up to 40 times faster. If you need smashing performance, get yourself some Gin.

  5. restruct

    RESTruct is a rest router written in Go to automatically create routes based on your structs. (by altlimit)

    For me it's mux and my personal router restruct but since mux is not maintained anymore, maybe chi will be my goto for new projects that needs more stability in the api. Since restruct is a router based on structs, which I use for fast prototyping.

  6. chi

    lightweight, idiomatic and composable router for building Go HTTP services

    I don't use chi anymore ever since this happened.

  7. oapi-codegen

    Generate Go client and server boilerplate from OpenAPI 3 specifications

    I use oapi-codegen with Echo

  8. Echo

    High performance, minimalist Go web framework

    echo! It's really easy it to use for simple routes but you can as well define routing groups as I did here.

  9. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Could I get a code review?

    11 projects | /r/golang | 1 Jun 2023
  • GitHub examples of Go that's written really well?

    12 projects | /r/golang | 15 Aug 2022
  • Building microservices in Go with Gin

    7 projects | dev.to | 27 Jan 2022
  • Writing an HTTP router for AWS Lambda functions from scratch with Go

    5 projects | dev.to | 20 Oct 2024
  • From Homemade HTTP Router to New ServeMux

    4 projects | dev.to | 26 Apr 2024

Did you know that Go is
the 4th most popular programming language
based on number of references?