{"id":13413448,"url":"https://github.com/google/wire","last_synced_at":"2025-05-13T11:03:50.980Z","repository":{"id":37318847,"uuid":"159540440","full_name":"google/wire","owner":"google","description":"Compile-time Dependency Injection for Go","archived":false,"fork":false,"pushed_at":"2024-07-24T00:27:16.000Z","size":492,"stargazers_count":13728,"open_issues_count":108,"forks_count":638,"subscribers_count":111,"default_branch":"main","last_synced_at":"2025-05-13T11:03:30.567Z","etag":null,"topics":["codegen","dependency-injection","go","golang","initialization"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/google.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-11-28T17:34:51.000Z","updated_at":"2025-05-13T09:29:38.000Z","dependencies_parsed_at":"2022-07-14T06:40:33.746Z","dependency_job_id":"fa932a52-58b3-4115-8826-b4fac239d5db","html_url":"https://github.com/google/wire","commit_stats":{"total_commits":198,"total_committers":37,"mean_commits":5.351351351351352,"dds":0.6262626262626263,"last_synced_commit":"e57deea2f8bbe2386b756f2555e02de33e20a3f0"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google%2Fwire","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google%2Fwire/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google%2Fwire/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google%2Fwire/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/google","download_url":"https://codeload.github.com/google/wire/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253929359,"owners_count":21985802,"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":["codegen","dependency-injection","go","golang","initialization"],"created_at":"2024-07-30T20:01:40.632Z","updated_at":"2025-05-13T11:03:50.904Z","avatar_url":"https://github.com/google.png","language":"Go","readme":"# Wire: Automated Initialization in Go\n\n[![Build Status](https://github.com/google/wire/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/google/wire/actions)\n[![godoc](https://godoc.org/github.com/google/wire?status.svg)][godoc]\n[![Coverage](https://codecov.io/gh/google/wire/branch/master/graph/badge.svg)](https://codecov.io/gh/google/wire)\n\n\nWire is a code generation tool that automates connecting components using\n[dependency injection][]. Dependencies between components are represented in\nWire as function parameters, encouraging explicit initialization instead of\nglobal variables. Because Wire operates without runtime state or reflection,\ncode written to be used with Wire is useful even for hand-written\ninitialization.\n\nFor an overview, see the [introductory blog post][].\n\n[dependency injection]: https://en.wikipedia.org/wiki/Dependency_injection\n[introductory blog post]: https://blog.golang.org/wire\n[godoc]: https://godoc.org/github.com/google/wire\n[travis]: https://travis-ci.com/google/wire\n\n## Installing\n\nInstall Wire by running:\n\n```shell\ngo install github.com/google/wire/cmd/wire@latest\n```\n\nand ensuring that `$GOPATH/bin` is added to your `$PATH`.\n\n## Documentation\n\n- [Tutorial][]\n- [User Guide][]\n- [Best Practices][]\n- [FAQ][]\n\n[Tutorial]: ./_tutorial/README.md\n[Best Practices]: ./docs/best-practices.md\n[FAQ]: ./docs/faq.md\n[User Guide]: ./docs/guide.md\n\n## Project status\n\nAs of version v0.3.0, Wire is *beta* and is considered feature complete. It\nworks well for the tasks it was designed to perform, and we prefer to keep it\nas simple as possible.\n\nWe'll not be accepting new features at this time, but will gladly accept bug\nreports and fixes.\n\n## Community\n\nFor questions, please use [GitHub Discussions](https://github.com/google/wire/discussions).\n\nThis project is covered by the Go [Code of Conduct][].\n\n[Code of Conduct]: ./CODE_OF_CONDUCT.md\n[go-cloud mailing list]: https://groups.google.com/forum/#!forum/go-cloud\n","funding_links":[],"categories":["Miscellaneous","Popular","HarmonyOS","Misc","Go","Tools","杂项","工具和库","Uncategorized","Go (134)","常用依赖注入库","Repositories","Microsoft Office","Dependency Injection","\u003ca name=\"Go\"\u003e\u003c/a\u003eGo"],"sub_categories":["Dependency Injection","Windows Manager","依赖注入","Golang","Uncategorized","交互工具"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoogle%2Fwire","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoogle%2Fwire","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoogle%2Fwire/lists"}