fx icon indicating copy to clipboard operation
fx copied to clipboard

A dependency injection based application framework for Go.

:unicorn: Fx GoDoc Github release Build Status Coverage Status Go Report Card

An application framework for Go that:

  • Makes dependency injection easy.
  • Eliminates the need for global state and func init().


We recommend locking to SemVer range ^1 using go mod:

go get go.uber.org/fx@v1


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.