Versions in this module Expand all Collapse all v1 v1.0.0 Jan 31, 2023 Changes in this version + const Version + func CanVisualizeError(err error) bool + func IsCycleDetected(err error) bool + func IsIn(o interface{}) bool + func IsOut(o interface{}) bool + func RootCause(err error) error + func Visualize(c *Container, w io.Writer, opts ...VisualizeOption) error + type Container struct + func New(opts ...Option) *Container + func (c *Container) Decorate(decorator interface{}, opts ...DecorateOption) error + func (c *Container) Invoke(function interface{}, opts ...InvokeOption) error + func (c *Container) Provide(constructor interface{}, opts ...ProvideOption) error + func (c *Container) Scope(name string, opts ...ScopeOption) *Scope + func (c *Container) String() string + type DecorateInfo struct + ID ID + Inputs []*Input + Outputs []*Output + type DecorateOption interface + func FillDecorateInfo(info *DecorateInfo) DecorateOption + type Error interface + type ID int + type In struct + type Input struct + func (i *Input) String() string + type InvokeOption interface + func HookBeforeInvoke(HookBeforeInvoke func()) InvokeOption + type Option interface + func DeferAcyclicVerification() Option + func DryRun(dry bool) Option + func RecoverFromPanics() Option + type Out struct + type Output struct + func (o *Output) String() string + type PanicError struct + Panic any + func (e PanicError) Error() string + func (e PanicError) Format(w fmt.State, c rune) + type ProvideInfo struct + ID ID + Inputs []*Input + Outputs []*Output + type ProvideOption interface + func As(i ...interface{}) ProvideOption + func Export(export bool) ProvideOption + func FillProvideInfo(info *ProvideInfo) ProvideOption + func Group(group string) ProvideOption + func LocationForPC(pc uintptr) ProvideOption + func Name(name string) ProvideOption + type Scope struct + func (s *Scope) Decorate(decorator interface{}, opts ...DecorateOption) error + func (s *Scope) Invoke(function interface{}, opts ...InvokeOption) (err error) + func (s *Scope) Provide(constructor interface{}, opts ...ProvideOption) error + func (s *Scope) Scope(name string, opts ...ScopeOption) *Scope + func (s *Scope) String() string + type ScopeOption interface + type VisualizeOption interface + func VisualizeError(err error) VisualizeOption