一、Github地址
https://github.com/google/wire
二、什么是wire
Wire is a code generation tool that automates connecting components using dependency injection. Dependencies between components are represented in Wire as function parameters, encouraging explicit initialization instead of global variables. Because Wire operates without runtime state or reflection, code written to be used with Wire is useful even for hand-written initialization.
简单说就是go的一个依赖注入项目框架,wire可以更方便的帮助我们处理