Documentation ¶
Index ¶
- Variables
- func GetNameType(t interface{}) (string, reflect.Type)
- type InstanceWrapper
- type TypeRegistry
- func (registry *TypeRegistry) LookupType(name string) (reflect.Type, bool)
- func (registry *TypeRegistry) NameTypeIsPresent(t any) (string, reflect.Type, bool)
- func (registry *TypeRegistry) RegisterInstanceType(t interface{})
- func (registry *TypeRegistry) UnwrapInstance(wrapper *InstanceWrapper) (interface{}, error)
- func (registry *TypeRegistry) WrapInstance(t interface{}) (*InstanceWrapper, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUnknownName = errors.New("unknown type name") ErrUnknownType = errors.New("unknown instance type") )
Functions ¶
func GetNameType ¶
Types ¶
type InstanceWrapper ¶
type TypeRegistry ¶
func (*TypeRegistry) LookupType ¶ added in v0.0.7
func (registry *TypeRegistry) LookupType(name string) (reflect.Type, bool)
func (*TypeRegistry) NameTypeIsPresent ¶ added in v0.0.7
func (*TypeRegistry) RegisterInstanceType ¶
func (registry *TypeRegistry) RegisterInstanceType(t interface{})
func (*TypeRegistry) UnwrapInstance ¶
func (registry *TypeRegistry) UnwrapInstance(wrapper *InstanceWrapper) (interface{}, error)
func (*TypeRegistry) WrapInstance ¶
func (registry *TypeRegistry) WrapInstance(t interface{}) (*InstanceWrapper, error)
Click to show internal directories.
Click to hide internal directories.