A dependency injection based application framework for Go.
Last updated Jul 8, 2026
7.6k
Stars
344
Forks
76
Issues
+11
Stars/day
Attention Score
85
Language breakdown
Go 99.7%
Makefile 0.3%
▸ Files
click to expand
README
:unicorn: Fx

Fx is a dependency injection system for Go.
Benefits
- Eliminate globals: Fx helps you remove global state from your application.
init() or global variables. Use Fx-managed singletons.
- Code reuse: Fx lets teams within your organization build loosely-coupled
- Battle tested: Fx is the backbone of nearly all Go services at Uber.
Installation
Use Go modules to install Fx in your application.
go get go.uber.org/fx@v1
Getting started
To get started with Fx, start here.
Stability
This library is v1 and follows SemVer strictly.
No breaking changes will be made to exported APIs before v2.0.0.
This project follows the Go Release Policy. Each major version of Go is supported until there are two newer major releases.
Stargazers over time
🔗 More in this category