Skip to content

Latest commit

 

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 ./...