Versions in this module Expand all Collapse all v2 v2.3.3 Oct 19, 2023 Changes in this version + func Call(function interface{}, options ...CallOption) ([]interface{}, error) + func Fill(structure interface{}) error + func Register(constructor interface{}, options ...Option) error + func RegisterInstance(interfacePtr interface{}, instance interface{}, options ...Option) error + func RegisterSubInterface(subInterfacePtr interface{}, interfacePtr interface{}) error + func Reset() + func Resolve(abstraction interface{}, options ...ResolveOption) error + func SetDefaultBinding(interfacePtr interface{}, defaultName string) error + type CallOption func(*resolveOption) error + func CallArguments(p map[int]interface{}) CallOption + func CallDependsOn(dependsOn map[int]string) CallOption + type Container struct + func Clone() *Container + func NewContainer() *Container + func (c *Container) Call(function interface{}, options ...CallOption) ([]interface{}, error) + func (c *Container) Clone() *Container + func (c *Container) Fill(structure interface{}) error + func (c *Container) Register(constructor interface{}, options ...Option) error + func (c *Container) RegisterInstance(interfacePtr interface{}, instance interface{}, options ...Option) error + func (c *Container) RegisterSubInterface(subInterfacePtr interface{}, interfacePtr interface{}) error + func (c *Container) Reset() + func (c *Container) Resolve(abstraction interface{}, options ...ResolveOption) error + func (c *Container) SetDefaultBinding(interfacePtr interface{}, defaultName string) error + type Option func(*binding) error + func Default() Option + func DependsOn(dependsOn map[int]string) Option + func Interface(it ...interface{}) Option + func Lifestyle(isTransient bool) Option + func Name(name string) Option + func Optional(index ...int) Option + func Parameters(p map[int]interface{}) Option + type ResolveOption func(*resolveOption) error + func Arguments(p map[int]interface{}) ResolveOption + func ResolveName(name string) ResolveOption