Wire
Recommendation
Updated
Moved
USE
2021-09-07
What is it
Wire is a code generation tool that simplifies and automates initialization and dependency injection for Go applications.
When to use it
Use Wire to generate an initializer function for all the dependencies of your Go application's main function.
tip
Wire provides a lightweight structure that makes it easier to grow your application in a modular way. We tend to use Wire even for smaller applications where manual initialization and dependency injection might initially seem simpler.
How to learn it
- Read the README
- Do the tutorial
- Read the user guide
- Read the best practices
- Read the FAQ