Stop vibe-debugging. Every exception, every backtrace, grouped so you see patterns, not noise. Learn more →
Top 23 Go Dependency Injection Projects
-
Iris
The fastest HTTP/2 Go Web Framework. New, modern and easy to learn. Fast development with Code you control. Unbeatable cost-performance ratio :rocket:
-
AppSignal
AppSignal knows why the f*#k it crashed. Stop vibe-debugging. Every exception, every backtrace, grouped so you see patterns, not noise.
-
Project mention: How we write Go API integration tests using Uber's fxtest package | dev.to | 2026-03-12
Fx is a dependency injection (DI) framework for Go, developed at Uber. At its core, it simplifies the problem of wiring dependencies together. Instead of manually constructing and passing dependencies through every layer of your application, you map types to constructors. When something depends on a type, Fx figures out how to provide it and injects it automatically. This is especially valuable with deeply nested structures. Without DI, threading a new dependency through multiple layers of "Russian doll" constructors quickly becomes repetitive. As our own dependency graph grew, Fx enabled us to group related dependencies into domain-specific modules.
-
-
Uber Dig - Runtime Dependency Injection
-
go-coffeeshop
☕ A practical event-driven microservices demo built with Golang. Nomad, Consul Connect, Vault, and Terraform for deployment
-
-
IOC-golang
IOC-golang is a powerful golang dependency injection framework that provides a complete implementation of IoC containers.
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
service-pattern-go
Simple clean Go REST API architecture with dependency injection and mocking example, following SOLID principles.
-
-
-
-
container
A lightweight yet powerful IoC dependency injection container for the Go programming language (by golobby)
-
Flamingo
Flamingo Framework and Core Library. Flamingo is a go based framework to build pluggable applications. Focus is on clean architecture, maintainability and operation readiness. (by i-love-flamingo)
-
-
-
go-echo-templ-htmx
Go/Echo+Templ+Htmx: Full stack application using Golang's Echo framework & Templ templating language with user session management + CRUD to a SQLite database (To Do List) and HTMX in the frontend
-
-
-
kod
A generics based dependency injection application framework for Go, supporting aspect oriented programming based on interceptors (by go-kod)
-
hiboot
hiboot is a high performance web and cli application framework with dependency injection support
-
-
-
go-vertical-slice-template
A Golang boilerplate template, based on Vertical Slice Architecture and CQRS pattern with using Echo, Gorm, Zap, Viper, Go-MediatR for CQRS and Dig for Dependency Injection.
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
Go Dependency Injection discussion
Go Dependency Injection related posts
-
Show HN: Kanna – Go generators for DI, queries, internationalization and more
-
Part 5: Mastering Dependency Resolution in Go with Parsley
-
Part 0: The Case for Dependency Injection in Go
-
Part 6: Ensuring Reliability - Validation and Proxies with Parsley
-
Part 4: Advanced Registration Patterns in Go with Parsley
-
How we write Go API integration tests using Uber's fxtest package
-
GopherCon 2019: Uber's Approach (1)
-
A note from our sponsor - AppSignal
www.appsignal.com | 5 Oct 2026
Index
What are some of the best open-source Dependency Injection projects in Go? This list will help you:
| # | Project | Stars |
|---|---|---|
| 1 | Iris | 25,560 |
| 2 | fx | 7,695 |
| 3 | go-clean-template | 7,692 |
| 4 | dig | 4,492 |
| 5 | go-coffeeshop | 4,357 |
| 6 | do | 2,816 |
| 7 | IOC-golang | 1,227 |
| 8 | service-pattern-go | 901 |
| 9 | yokai | 841 |
| 10 | mortar | 677 |
| 11 | flamego | 622 |
| 12 | container | 612 |
| 13 | Flamingo | 559 |
| 14 | gongular | 504 |
| 15 | goioc/di | 378 |
| 16 | go-echo-templ-htmx | 297 |
| 17 | di | 241 |
| 18 | go-web | 204 |
| 19 | kod | 199 |
| 20 | hiboot | 180 |
| 21 | gontainer | 156 |
| 22 | kessoku | 142 |
| 23 | go-vertical-slice-template | 128 |