これはGo Advent Calendar 2018の14日目の記事となる。 この記事ではGoogleが提供するGoのDependency Injection(DI、依存性の注入)ツールであるWireを使ったDIの概要と、Wireで利用可能なDI関数の戻り値シグネチャのパターンを紹介する。 github.com/google/wire https://github.com/google/wire Compile-time Dependency Injection With Go Cloud’s Wire | The Go blog https://blog.golang.org/wire TL;DR WireコマンドはGoogle謹製のGoでDI(依存性の注入)を行なうツール https://github.com/google/wire 依存の注入・初期化、依存の注入・初期化を繰り返して多
![google/wireを使ったDIとDI関数のシグネチャについて #go](https://cdn-ak-scissors.b.st-hatena.com/image/square/f3ca5145f819bb37539bafba90f1c2353dbe1f00/height=288;version=1;width=512/https%3A%2F%2Fbudougumi0617.github.io%2Flogos%2FGo-Logo_Aqua.png)