Versions in this module Expand all Collapse all v1 v1.0.2 Oct 28, 2022 Changes in this version + type Container interface + Bind func(provider ServiceProvider) error + IsBind func(key string) bool + Make func(key string) (interface{}, error) + MakeNew func(key string, params []interface{}) (interface{}, error) + MustMake func(key string) interface{} + type HeroContainer struct + func NewHeroContainer() *HeroContainer + func (hero *HeroContainer) Bind(provider ServiceProvider) error + func (hero *HeroContainer) IsBind(key string) bool + func (hero *HeroContainer) Make(key string) (interface{}, error) + func (hero *HeroContainer) MakeNew(key string, params []interface{}) (interface{}, error) + func (hero *HeroContainer) MustMake(key string) interface{} + func (hero *HeroContainer) NameList() []string + func (hero *HeroContainer) PrintProviders() []string + type NewInstance func(...interface{}) (interface{}, error) + type ServiceProvider interface + Boot func(Container) error + IsDefer func() bool + Name func() string + Params func(Container) []interface{} + Register func(Container) NewInstance