Go 的依赖注入

NoSugarCoffee ·
这类依赖注入框架,简单代码,但带来的额外消耗也很明显,[性能测试](https://github.com/wwcd/hi-dig) ```bash go test -v -bench=. goos: linux goarch: amd64 BenchmarkDig-2 50000 33863 ns/op BenchmarkPrimitive-2 2000000000 0.41 ns/op ```
#1
更多评论
buscoop
纸上得来终觉浅,绝知此事要躬行!
同意!!!
#2
如果要用依赖注入,为什么要选择Go呢?
#3