golang-google-wire

golang google wire

samber ↓ 31k
Claude Code
View source ↗

What it does

  • wire: go install github.com/google/wire/cmd/wire@latest
  • advanced.md — cleanup chains, multiple injectors, set nesting, error catalogue, codegen flags, quick reference
  • recipes.md — HTTP server, multi-injector build, cleanup-heavy graph, CLI embedding
  • testing.md — test injectors, fake bindings, CI stale check
  • → See samber/cc-skills-golang@golang-dependency-injection skill for DI concepts and library comparison
  • → See samber/cc-skills-golang@golang-uber-dig skill for runtime reflection-based DI without lifecycle
  • → See samber/cc-skills-golang@golang-uber-fx skill for runtime DI with lifecycle hooks, modules, and signal-aware Run()

Derived from the skill's own SKILL.md documentation · extracted 2026-07-23

golang google wire

Source

Repository: https://github.com/samber/cc-skills-golang

golang-google-wire FAQ

What does the golang-google-wire skill do?

Compile-time dependency injection in Golang using google/wire — wire.NewSet, wire.Build, wire.Bind (interface→concrete), wire.Struct, wire.Value, wire.InterfaceValue, wire.FieldsOf, cleanup functions, //go:build wireinject injector files, and generated wire_gen.go. Apply when using or adopting google/wire, when the codebase imports `github.com/google/wire`, or when wiring an application graph at compile time via `wire.Build`. For runtime DI with reflection, see `samber/cc-skills-golang@golang-uber-dig` skill. wire: go install github.com/google/wire/cmd/wire@latest advanced.md — cleanup chains, multiple injectors, set nesting, error catalogue, codegen flags, quick reference

How do I install golang-google-wire?

Run: npx -y skills add https://github.com/samber/cc-skills-golang --skill golang-google-wire --agent claude-code — the source lives at github.com/samber/cc-skills-golang.

Maintain golang-google-wire?

Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.

golang-google-wire on getagentictools
[![golang-google-wire on getagentictools](https://getagentictools.com/badge/skills/samber-cc-skills-golang-golang-google-wire.svg)](https://getagentictools.com/skills/samber-cc-skills-golang-golang-google-wire?ref=badge)
npx agentictools info skills/samber-cc-skills-golang-golang-google-wire

The second line is the CLI lookup for this page — handy in READMEs and docs.