The Go libraries that never failed us: 22 libraries you need to know

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

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • requests

    HTTP requests for Gophers (by earthboundkid)

  • https://blog.carlmjohnson.net/post/2021/requests-golang-http-client/ talks about why that’s the API. To be honest, I think a lot of people have an irrational fear of mutability. If you want to make a clone, use .Clone(). If not then don’t. But if you don’t like mutability, you’re going to dislike using the Go standard library, which uses mutable package variables all over the place.

  • be

    The Go test helper for minimalists

  • For testing, use be

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

    A versatile library for building CLI applications in Go

  • I never got on with the CLI libs everyone usually recommends, but shoutout to mow.cli which I actually like

  • sqlc

    Generate type-safe code from SQL

  • is it though? I couldn't find sqlx in sqlc's go.mod - https://github.com/kyleconroy/sqlc/blob/main/go.sum

  • is

    Professional lightweight testing mini-framework for Go.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS 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