What's the best dependency injection framework / methodology for Golang for the enterprise?

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

Sevalla - Deploy and host your apps and databases, now with $50 credit!
Sevalla is the PaaS you have been looking for! Advanced deployment pipelines, usage-based pricing, preview apps, templates, human support by developers, and much more!
sevalla.com
featured
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured
  1. wire

    Compile-time Dependency Injection for Go

    For big project you need DI framework, and I suggest Google Wire (https://github.com/google/wire)

  2. Sevalla

    Deploy and host your apps and databases, now with $50 credit! Sevalla is the PaaS you have been looking for! Advanced deployment pipelines, usage-based pricing, preview apps, templates, human support by developers, and much more!

    Sevalla logo
  3. dig

    A reflection based dependency injection toolkit for Go.

    Interesting, one of my friends works at a big tech company and they said they passed on Wire and ultimately decided on Uber Dig https://github.com/uber-go/dig. But looking at that lib it seems a bit anti-paradigm of the goal of the Golang language (no magic/obfuscated code running in the background, what you see is what you get style coding)

  4. fx

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

    We’re happy with https://github.com/uber-go/fx

  5. dingo

    Generated dependency injection containers in go (golang) (by sarulabs)

  6. boot

    Configuration and dependency injection (by boot-go)

  7. go-kit

    A standard library for microservices.

    My company uses go-kit

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

  • Golang with google wire

    2 projects | dev.to | 13 Jun 2025
  • Dependency Injection in Go: Comparing Wire, Dig, Fx & More

    5 projects | dev.to | 5 Feb 2025
  • Do: A dependency injection toolkit based on Go 1.18 Generics

    1 project | news.ycombinator.com | 24 Jul 2024
  • @Autowired magic in SpringBoot

    1 project | dev.to | 16 Jun 2024
  • Dependency Injection: A Straightforward Implementation in Golang

    1 project | dev.to | 10 May 2024

Did you know that Go is
the 4th most popular programming language
based on number of references?