liuxiulin 1921cb4c51 first commit 1 ヶ月 前
..
internal 1921cb4c51 first commit 1 ヶ月 前
.codecov.yml 1921cb4c51 first commit 1 ヶ月 前
.gitignore 1921cb4c51 first commit 1 ヶ月 前
.travis.yml 1921cb4c51 first commit 1 ヶ月 前
CHANGELOG.md 1921cb4c51 first commit 1 ヶ月 前
LICENSE 1921cb4c51 first commit 1 ヶ月 前
Makefile 1921cb4c51 first commit 1 ヶ月 前
README.md 1921cb4c51 first commit 1 ヶ月 前
check_license.sh 1921cb4c51 first commit 1 ヶ月 前
cycle.go 1921cb4c51 first commit 1 ヶ月 前
dig.go 1921cb4c51 first commit 1 ヶ月 前
doc.go 1921cb4c51 first commit 1 ヶ月 前
error.go 1921cb4c51 first commit 1 ヶ月 前
glide.yaml 1921cb4c51 first commit 1 ヶ月 前
graph.go 1921cb4c51 first commit 1 ヶ月 前
group.go 1921cb4c51 first commit 1 ヶ月 前
param.go 1921cb4c51 first commit 1 ヶ月 前
result.go 1921cb4c51 first commit 1 ヶ月 前
stringer.go 1921cb4c51 first commit 1 ヶ月 前
types.go 1921cb4c51 first commit 1 ヶ月 前
version.go 1921cb4c51 first commit 1 ヶ月 前

README.md

:hammer_and_pick: 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.