{"id":13413439,"url":"https://github.com/uber-go/dig","last_synced_at":"2025-05-13T19:06:36.184Z","repository":{"id":38523446,"uuid":"85765458","full_name":"uber-go/dig","owner":"uber-go","description":"A reflection based dependency injection toolkit for Go.","archived":false,"fork":false,"pushed_at":"2025-05-09T13:25:18.000Z","size":793,"stargazers_count":4145,"open_issues_count":29,"forks_count":216,"subscribers_count":45,"default_branch":"master","last_synced_at":"2025-05-12T14:32:46.568Z","etag":null,"topics":["dependency-injection","di","go","golang"],"latest_commit_sha":null,"homepage":"https://go.uber.org/dig","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/uber-go.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-03-21T23:55:50.000Z","updated_at":"2025-05-12T06:31:24.000Z","dependencies_parsed_at":"2023-02-16T10:46:06.996Z","dependency_job_id":"a40ba9aa-4016-4dc8-ad0d-c033e25637bc","html_url":"https://github.com/uber-go/dig","commit_stats":{"total_commits":321,"total_committers":44,"mean_commits":7.295454545454546,"dds":0.7850467289719626,"last_synced_commit":"897df361fb2ddf798d605f6ef0ba4ae3737e241a"},"previous_names":[],"tags_count":31,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uber-go%2Fdig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uber-go%2Fdig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uber-go%2Fdig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uber-go%2Fdig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uber-go","download_url":"https://codeload.github.com/uber-go/dig/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253991970,"owners_count":21996047,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dependency-injection","di","go","golang"],"created_at":"2024-07-30T20:01:40.429Z","updated_at":"2025-05-13T19:06:36.166Z","avatar_url":"https://github.com/uber-go.png","language":"Go","readme":"# :hammer_and_pick: dig [![GoDoc][doc-img]][doc] [![GitHub release][release-img]][release] [![Build Status][ci-img]][ci] [![Coverage Status][cov-img]][cov] [![Go Report Card][report-card-img]][report-card]\n\nA reflection based dependency injection toolkit for Go.\n\n### Good for:\n\n* Powering an application framework, e.g. [Fx](https://github.com/uber-go/fx).\n* Resolving the object graph during process startup.\n\n### Bad for:\n\n* Using in place of an application framework, e.g. [Fx](https://github.com/uber-go/fx).\n* Resolving dependencies after the process has already started.\n* Exposing to user-land code as a [Service Locator](https://martinfowler.com/articles/injection.html#UsingAServiceLocator).\n\n## Installation\n\nWe recommend consuming [SemVer](http://semver.org/) major version `1` using\nyour dependency manager of choice.\n\n```\n$ glide get 'go.uber.org/dig#^1'\n$ dep ensure -add \"go.uber.org/dig@v1\"\n$ go get 'go.uber.org/dig@v1'\n```\n\n## Stability\n\nThis library is `v1` and follows [SemVer](http://semver.org/) strictly.\n\nNo breaking changes will be made to exported APIs before `v2.0.0`.\n\n[doc-img]: http://img.shields.io/badge/GoDoc-Reference-blue.svg\n[doc]: https://godoc.org/go.uber.org/dig\n\n[release-img]: https://img.shields.io/github/release/uber-go/dig.svg\n[release]: https://github.com/uber-go/dig/releases\n\n[ci-img]: https://github.com/uber-go/dig/actions/workflows/go.yml/badge.svg\n[ci]: https://github.com/uber-go/dig/actions/workflows/go.yml\n\n[cov-img]: https://codecov.io/gh/uber-go/dig/branch/master/graph/badge.svg\n[cov]: https://codecov.io/gh/uber-go/dig/branch/master\n\n[report-card-img]: https://goreportcard.com/badge/github.com/uber-go/dig\n[report-card]: https://goreportcard.com/report/github.com/uber-go/dig\n\n## Stargazers over time\n\n[![Stargazers over time](https://starchart.cc/uber-go/dig.svg)](https://starchart.cc/uber-go/dig)\n\n","funding_links":[],"categories":["Misc","开源类库","Go","Miscellaneous","杂项","Open source library","常用依赖注入库","Microsoft Office","其他杂项","Dependency Injection"],"sub_categories":["依赖注入","Dependency Injection","Addiction Injection","交互工具","依赖性注入"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuber-go%2Fdig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuber-go%2Fdig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuber-go%2Fdig/lists"}