Golang Dependency Injection Loses Type Safety with Struct Arguments

前端 未结 0 1597
走了就别回头了
走了就别回头了 2021-01-20 07:59

A common pattern in Golang is to use dependency injection as a means to get around circular imports.

For example, here is a very short code snippet

相关标签:
回答
  • 消灭零回复
提交回复
热议问题