{"id":20945131,"url":"https://github.com/cheivin/di","last_synced_at":"2025-05-14T01:31:31.230Z","repository":{"id":48202773,"uuid":"390680204","full_name":"Cheivin/di","owner":"Cheivin","description":"一个简易版本的Go依赖注入实现","archived":false,"fork":false,"pushed_at":"2022-03-29T08:41:32.000Z","size":167,"stargazers_count":130,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-06-19T21:40:40.668Z","etag":null,"topics":["dependency-injection","go","golang"],"latest_commit_sha":null,"homepage":"https://cheivin.gitbook.io/di/","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/Cheivin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-07-29T10:03:28.000Z","updated_at":"2023-10-08T12:18:24.000Z","dependencies_parsed_at":"2022-09-05T19:51:12.924Z","dependency_job_id":null,"html_url":"https://github.com/Cheivin/di","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cheivin%2Fdi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cheivin%2Fdi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cheivin%2Fdi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cheivin%2Fdi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Cheivin","download_url":"https://codeload.github.com/Cheivin/di/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225269346,"owners_count":17447513,"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","go","golang"],"created_at":"2024-11-18T23:46:55.773Z","updated_at":"2024-11-18T23:46:56.238Z","avatar_url":"https://github.com/Cheivin.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# di\n\n`di`是一个简易版本的Go依赖注入实现\n\n[文档地址](https://cheivin.gitbook.io/di/)\n\n## 特性\n\n* 支持手动注册bean实例\n* 支持注册bean类型原型，由DI容器自动实例化并托管bean实例\n* 支持根据名称、类型获取DI容器托管的bean实例\n* 支持根据类型手动生成新的bean实例并返回\n* 支持配置项注入并转换成对应的基本类型\n* 支持匿名字段的bean注入\n\n## 特别鸣谢\n\n[![JetBrains](https://raw.githubusercontent.com/kainonly/ngx-bit/main/resource/jetbrains.svg)](https://www.jetbrains.com/?from=cheivin)\n\n感谢 [JetBrains](https://www.jetbrains.com/?from=cheivin) 提供的开源开发许可证。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcheivin%2Fdi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcheivin%2Fdi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcheivin%2Fdi/lists"}