The Wayback Machine - https://web.archive.org/web/20220411112926/https://github.com/uber-go/dig
Skip to content
master
Switch branches/tags
Code

Latest commit

Upgrade to the latest version of testify.
This upgrades the transitive yaml dependency, which helps address a
dependabot alert about CVE-2019-11254.
86edde4

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time

⚒️ dig GoDoc GitHub release Build Status Coverage Status Go Report Card

A reflection based dependency injection toolkit for Go.

Good for:

  • Powering an application framework, e.g. Fx.
  • Resolving the object graph during process startup.

Bad for:

  • Using in place of an application framework, e.g. Fx.
  • Resolving dependencies after the process has already started.
  • Exposing to user-land code as a Service Locator.

Installation

We recommend consuming SemVer major version 1 using your dependency manager of choice.

$ glide get 'go.uber.org/dig#^1'
$ dep ensure -add "go.uber.org/dig@v1"
$ go get 'go.uber.org/dig@v1'

Stability

This library is v1 and follows SemVer strictly.

No breaking changes will be made to exported APIs before v2.0.0.