Skip to content

Files

Latest commit

f4b2b27 · Sep 10, 2022

History

History
19 lines (12 loc) · 377 Bytes

File metadata and controls

19 lines (12 loc) · 377 Bytes

Dependency Injection in Go

Wire is a code generation tool that automates connecting components using dependency injection.

DI

Install

go install github.com/google/wire/cmd/wire@latest

and ensuring that $GOPATH/bin is added to your $PATH.

Code Generate

wire gen ./...