Documentation
¶
Index ¶
- func Pick[T any](r *Registry) (T, error)
- type HasPopulated
- type Registry
- func (r *Registry) InferFrom(s any, override bool) error
- func (r *Registry) Init(values ...any) error
- func (r *Registry) Override(name string, component interface{})
- func (r *Registry) Populate(s interface{}) error
- func (r *Registry) Provide(f interface{})
- func (r *Registry) ProvideName(name string, f interface{})
- func (r *Registry) Register(name string, component interface{})
- func (r *Registry) Resolve(s any) error
- func (r *Registry) ResolveNamed(s any, name string) error
- func (r *Registry) RunHooks(s any) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HasPopulated ¶
type HasPopulated interface {
Populated() error
}
type Registry ¶
func (*Registry) ProvideName ¶
Click to show internal directories.
Click to hide internal directories.