Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/uber-go/fx
A dependency injection based application framework for Go.
https://github.com/uber-go/fx
app-framework dependency-injection framework go golang service
Last synced: 6 days ago
JSON representation
A dependency injection based application framework for Go.
- Host: GitHub
- URL: https://github.com/uber-go/fx
- Owner: uber-go
- License: mit
- Created: 2016-10-27T00:25:00.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2024-10-11T17:31:46.000Z (2 months ago)
- Last Synced: 2024-10-23T20:26:44.740Z (about 2 months ago)
- Topics: app-framework, dependency-injection, framework, go, golang, service
- Language: Go
- Homepage: https://uber-go.github.io/fx/
- Size: 2.95 MB
- Stars: 5,795
- Watchers: 67
- Forks: 290
- Open Issues: 55
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
- awesome-go - fx - A dependency injection based application framework for Go (built on top of dig). (Miscellaneous / Dependency Injection)
- my-awesome - uber-go/fx - framework,dependency-injection,framework,go,golang,service pushed_at:2024-12 star:6.0k fork:0.3k A dependency injection based application framework for Go. (Go)
- zero-alloc-awesome-go - fx - A dependency injection based application framework for Go (built on top of dig). (Miscellaneous / Dependency Injection)
- awesome-repositories - uber-go/fx - A dependency injection based application framework for Go. (Go)
- awesome-list - fx - go | 2154 | (Go)
- go-awesome - FX
- awesome-golang-repositories - fx
- awesome-go - fx - A dependency injection based application framework for Go (built on top of dig). Stars:`5.9K`. (Miscellaneous / Dependency Injection)
- awesome-go-extra - fx - 10-27T00:25:00Z|2022-08-25T17:40:19Z| (Microsoft Office / Dependency Injection)
- awesome-go - fx - 基于依赖注入的应用程序框架。 (常用依赖注入库 / 交互工具)
- awesome-go - fx - 基于依赖注入的应用程序框架。 (常用依赖注入库 / 交互工具)
README
# :unicorn: Fx [![GoDoc](https://pkg.go.dev/badge/go.uber.org/fx)](https://pkg.go.dev/go.uber.org/fx) [![Github release](https://img.shields.io/github/release/uber-go/fx.svg)](https://github.com/uber-go/fx/releases) [![Build Status](https://github.com/uber-go/fx/actions/workflows/go.yml/badge.svg)](https://github.com/uber-go/fx/actions/workflows/go.yml) [![Coverage Status](https://codecov.io/gh/uber-go/fx/branch/master/graph/badge.svg)](https://codecov.io/gh/uber-go/fx/branch/master) [![Go Report Card](https://goreportcard.com/badge/go.uber.org/fx)](https://goreportcard.com/report/go.uber.org/fx)
Fx is a dependency injection system for Go.
**Benefits**
- Eliminate globals: Fx helps you remove global state from your application.
No more `init()` or global variables. Use Fx-managed singletons.
- Code reuse: Fx lets teams within your organization build loosely-coupled
and well-integrated shareable components.
- Battle tested: Fx is the backbone of nearly all Go services at Uber.See our [docs](https://uber-go.github.io/fx/) to get started and/or
learn more about Fx.## Installation
Use Go modules to install Fx in your application.
```shell
go get go.uber.org/fx@v1
```## Getting started
To get started with Fx, [start here](https://uber-go.github.io/fx/get-started/).
## Stability
This library is `v1` and follows [SemVer](https://semver.org/) strictly.
No breaking changes will be made to exported APIs before `v2.0.0`.
This project follows the [Go Release Policy](https://golang.org/doc/devel/release.html#policy). Each major
version of Go is supported until there are two newer major releases.## Stargazers over time
[![Stargazers over time](https://starchart.cc/uber-go/fx.svg)](https://starchart.cc/uber-go/fx)