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 - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • 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:

  • 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

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • 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.

  • 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.

  • chi

    lightweight, idiomatic and composable router for building Go HTTP services

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

  • oapi-codegen

    Generate Go client and server boilerplate from OpenAPI 3 specifications

  • I use oapi-codegen with Echo

  • 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.

  • 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
  • From Homemade HTTP Router to New ServeMux

    4 projects | dev.to | 26 Apr 2024
  • The Gorilla web toolkit project is being revived, all repos are out of archive mode.

    5 projects | /r/golang | 12 Jul 2023