Dependency Injection 2021

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

Our great sponsors
  • OPS - Build and Run Open Source Unikernels
  • SonarLint - Deliver Cleaner and Safer Code - Right in Your IDE of Choice!
  • Scout APM - Less time debugging, more time building
  • GitHub repo wire

    Compile-time Dependency Injection for Go

    At my workplace we use for dependency-injection in our backend services. I would recommend trying it out - since the dependency injection is done compile-time with code generation, it is simpler and easier to reason about, and contains less abstraction than most runtime dependency-injection frameworks.

  • GitHub repo rdi

    I wrote for my needs for a long time, and then decided to open public access:

  • OPS

    OPS - Build and Run Open Source Unikernels. Quickly and easily build and deploy open source unikernels in tens of seconds. Deploy in any language to any cloud.

  • GitHub repo fx

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

    I use uber-go/fx in production and all my personal projects.

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