What problem does it solve?
This Skill helps you design and troubleshoot compile-time dependency injection in Go projects that use google/wire, so constructor graphs stay type-safe, readable, and easy to regenerate after changes.
Core Features & Use Cases
- Provider set design: Organize constructors into reusable sets that keep large applications composable.
- Interface bindings: Map interfaces to concrete implementations explicitly so dependency graphs resolve predictably.
- Cleanup handling: Propagate shutdown logic through providers that return cleanup functions and errors.
- Generated code workflow: Keep generated wiring in sync by rerunning code generation instead of editing generated output by hand.
- Testing support: Build test-only injectors and fake bindings for integration tests without changing production wiring.
Quick Start
Use the golang-google-wire skill to review a Go repository, identify its wiring pattern, and explain the correct provider, binding, and regeneration steps needed to keep google/wire working.