dig
wire
Our great sponsors
dig | wire | |
---|---|---|
5 | - | |
3,688 | 38 | |
2.2% | - | |
5.9 | 1.8 | |
about 1 month ago | over 2 years ago | |
Go | Go | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
dig
- Injeção de dependência em Go
-
Go doesn’t do any magical stuff and I love that
Ironically given Spring’s history, you do have dependency injection in Go. But you don’t need to use it unless there’s a clear benefit. Most code reviewers would be appalled if you pulled in dig into a project that didn’t need it.
-
What's the best dependency injection framework / methodology for Golang for the enterprise?
Interesting, one of my friends works at a big tech company and they said they passed on Wire and ultimately decided on Uber Dig https://github.com/uber-go/dig. But looking at that lib it seems a bit anti-paradigm of the goal of the Golang language (no magic/obfuscated code running in the background, what you see is what you get style coding)
-
Is dependency injection in Go a thing?
It's a library to help with DI, by Uber: https://github.com/uber-go/dig
- Alternative for Monkey patching
wire
We haven't tracked posts mentioning wire yet.
Tracking mentions began in Dec 2020.
What are some alternatives?
fx - A dependency injection based application framework for Go.
wire - Compile-time Dependency Injection for Go
filetype - Fast, dependency-free Go package to infer binary file types based on the magic numbers header signature
di - 🛠 A full-featured dependency injection container for go programming language.
gin-vue-admin - 🚀Vite+Vue3+Gin的开发基础平台,支持TS和JS混用。它集成了JWT鉴权、权限管理、动态路由、显隐可控组件、分页封装、多点登录拦截、资源权限、上传下载、代码生成器、表单生成器和可配置的导入导出等开发必备功能。
container - A lightweight yet powerful IoC dependency injection container for the Go programming language
hub - A command-line tool that makes git easier to use with GitHub.
gocontainer - Simple Dependency Injection Container
delve - Delve is a debugger for the Go programming language.
goioc/di - Simple and yet powerful Dependency Injection for Go
fzf - :cherry_blossom: A command-line fuzzy finder