بازگشت به نتایج جستجو

samber / AGENT SKILL

golang-uber-dig

فارسی + English

این اسکیل چه می‌کند؟

DI در Go با uber-go/dig؛ container بازتابی، Provide/Invoke، dig.In/Out، named value، value group، optional dependency، scope و Decorate؛ برای استفاده/پذیرش، `go.uber.org/dig` یا graph هنگام startup. lifecycle/module سطح بالاتر با `samber/cc-skills-golang@golang-uber-fx`.

ORIGINAL DESCRIPTION

Implements dependency injection in Golang using uber-go/dig — reflection-based container, Provide/Invoke, dig.In/dig.Out parameter and result objects, named values, value groups, optional dependencies, scopes, and Decorate. Apply when using or adopting uber-go/dig, when the codebase imports `go.uber.org/dig`, or when wiring an application graph at startup. For higher-level lifecycle and modules, see `samber/cc-skills-golang@golang-uber-fx` skill.

چه زمانی به کار می‌آید؟

در دادهٔ اصلی، کاربرد جداگانه‌ای ثبت نشده است. توضیح بالا و صفحهٔ منبع را ببینید.