fx VS dig

Compare fx vs dig and see what are their differences.


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


A reflection based dependency injection toolkit for Go. (by uber-go)
Our great sponsors
  • Scout APM - A developer's best friend. Try free for 14-days
  • Nanos - Run Linux Software Faster and Safer than Linux with Unikernels
  • SaaSHub - Software Alternatives and Reviews
fx dig
8 0
2,328 2,212
3.7% 4.4%
7.8 6.0
7 days ago 3 days ago
Go Go
MIT License GNU General Public License v3.0 or later
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.


Posts with mentions or reviews of fx. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-11-17.


Posts with mentions or reviews of dig. We have used some of these posts to build our list of alternatives and similar projects.

We haven't tracked posts mentioning dig yet.
Tracking mentions began in Dec 2020.

What are some alternatives?

When comparing fx and dig you can also consider the following projects:

wire - Strict Runtime Dependency Injection for Golang

di - ๐Ÿ›  A full-featured dependency injection container for go programming language.

captcha - :sunglasses:Package captcha provides an easy to use, unopinionated API for captcha generation

container - A lightweight yet powerful IoC dependency injection container for Go projects

gocontainer - Simple Dependency Injection Container

deckmaster - An application to control your Elgato Stream Deck on Linux

todo-api-microservice-example - Go microservice tutorial project using Domain Driven Design and Onion Architecture!

watermill - Building event-driven applications the easy way in Go.

linker - Dependency Injection and Inversion of Control package

archiver - Easily create & extract archives, and compress & decompress files of various formats