Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var As = dig.As
c.Provide(newFile, dig.As(new(io.Reader)), dig.Name("temp")) dig.As(i ...any) dig.ProvideOption
var CanVisualizeError = dig.CanVisualizeError
dig.CanVisualizeError(err error) bool
var DeferAcyclicVerification = dig.DeferAcyclicVerification
dig.DeferAcyclicVerification() dig.Option
var DryRun = dig.DryRun
创建一个没有设置的容器 dig.DryRun(dry bool) dig.Option
var FillProvideInfo = dig.FillProvideInfo
填充信息 dig.FillProvideInfo(info *dig.ProvideInfo) dig.ProvideOption
var Group = dig.Group
分组 dig.Group(group string) dig.ProvideOption
var IsIn = dig.IsIn
是否导入 dig.IsIn(o any) bool
var IsOut = dig.IsOut
是否导出 dig.IsOut(o any) bool
var LocationForPC = dig.LocationForPC
dig.LocationForPC(pc uintptr) dig.ProvideOption
var Name = dig.Name
命名 c.Provide(NewReadOnlyConnection, dig.Name("ro")) dig.Name(name string) dig.ProvideOption
var RootCause = dig.RootCause
dig.RootCause(err error) error
var Visualize = dig.Visualize
dig.Visualize(c *dig.Container, w io.Writer, opts ...dig.VisualizeOption) error
var VisualizeError = dig.VisualizeError
dig.VisualizeError(err error) dig.VisualizeOption
Functions ¶
This section is empty.