google-wire

Compile-time Dependency Injection for Go (program)
  https://github.com/google/wire
  0
  no reviews



Wire: Automated Initialization in Go

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.

For an overview, see the introductory blog post https://blog.golang.org/wire

This package contains the wire command-line program.