What 3rd-party libraries do you use often/all the time?

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

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

    💥 A Lodash-style Go library based on Go 1.18+ Generics (map, filter, contains, find...)

  • What are some 3rd-party libraries for Go that you use often/all the time? Instead of "just implement everything yourself", I would really like to get some tips. For instance, a few days ago I discovered https://github.com/samber/lo , which looks very good if I want to have list comprehensions (Python) / LINQ methods (C#). https://pkg.go.dev/github.com/atotto/clipboard is also good for clipboard operations. What else do you suggest and for what task?

  • cobra

    A Commander for modern Go CLI interactions

  • github.com/spf13/cobra

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

    Go configuration with fangs

  • github.com/spf13/viper

  • Testify

    A toolkit with common assertions and mocks that plays nicely with the standard library

  • github.com/stretchr/testify

  • go-sqlite3

    sqlite3 driver for go using database/sql

  • github.com/mattn/go-sqlite3

  • sqlc

    Generate type-safe code from SQL

  • https://github.com/sqlc-dev/sqlc — for use with //go:generate

  • workerpool

    Concurrency limiting goroutine pool (by gammazero)

  • For worker pools of goroutines, this has always been "good enough" for me: https://github.com/gammazero/workerpool

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