README ¶ odi Object Dependency Injection Expand ▾ Collapse ▴ Documentation ¶ Index ¶ func Clone(object any) any func Dispose(object any) func Provide(kind string, constructor func() any) func Resolve(r io.Reader, opts ...Option) (any, error) type Config func NewDefaultConfig() *Config type Option func WithKey(key string) Option func WithResolver(resolver string) Option Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Clone ¶ func Clone(object any) any Clone 克隆 func Dispose ¶ func Dispose(object any) Dispose 释放 func Provide ¶ func Provide(kind string, constructor func() any) Provide 注册 func Resolve ¶ func Resolve(r io.Reader, opts ...Option) (any, error) Resolve 解析 Types ¶ type Config ¶ type Config struct { Resolver string Key string } func NewDefaultConfig ¶ func NewDefaultConfig() *Config type Option ¶ type Option func(o *Config) func WithKey ¶ func WithKey(key string) Option func WithResolver ¶ func WithResolver(resolver string) Option Source Files ¶ View all Source files config.go di.go Directories ¶ Show internal Expand all Path Synopsis clone container dispose resolve yaml test module types Click to show internal directories. Click to hide internal directories.