Is dependency injection in Go a thing?

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

    A dependency injection based application framework for Go. (by uber-go)

  • I can't imagine starting any new project in Go without uber-go/fx.

  • dig

    A reflection based dependency injection toolkit for Go.

  • It's a library to help with DI, by Uber: https://github.com/uber-go/dig

  • 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
  • golang-runtime-di

    a runtime dependency injection framework for golang.

  • I wrote (and I am using) a reflection based library like dig: https://github.com/dbsystel/golang-runtime-di

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