golang-google-wire

Community

Generate compile-time DI with google/wire

Authorvanstinator
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill helps you set up compile-time dependency injection in Go so your application graph is validated by the compiler and generated into fast, plain Go constructors.

Core Features & Use Cases

  • Provider-based wiring: Define dependency constructors as provider functions and compose them into a complete object graph.
  • Reusable provider sets: Use wire.NewSet to group providers and share them across injectors with predictable inputs/outputs.
  • Explicit interface bindings: Use wire.Bind to map interfaces to concrete implementations without relying on runtime reflection.
  • Structured injection helpers: Use wire.Struct, wire.Value, wire.InterfaceValue, and wire.FieldsOf to inject named fields, constants, and interface literals cleanly.
  • Cleanup chain support: Return (T, func(), error) so generated code executes cleanup functions in reverse construction order.

Quick Start

Run wire ./... in your module after updating your injector providers and ensure every injector file includes the //go:build wireinject build tag.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: golang-google-wire
Download link: https://github.com/vanstinator/semantic-search/archive/main.zip#golang-google-wire

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.