Documentation ¶
Index ¶
- func AugmentObservablesByReflection(tb *TypeBuilder) error
- func RegisterAugmenter(aug TypeAugmenter)
- func RegisterProperty(typ Type, prop Property)
- func RegisterPropertyFunc[T, V any](name string, fn func(T) V)
- func RegisterPropertyMethod[T any](name string)
- type Node
- type Path
- type Property
- type Type
- type TypeAugmenter
- type TypeAugmenterFunc
- type TypeBuilder
- func (tb *TypeBuilder) Build() Type
- func (tb *TypeBuilder) IsDirty() bool
- func (tb *TypeBuilder) Name() string
- func (tb *TypeBuilder) Properties() []Property
- func (tb *TypeBuilder) Property(name string) Property
- func (tb *TypeBuilder) RuntimeType() reflect.Type
- func (tb *TypeBuilder) WithProperties(props ...Property) *TypeBuilder
- func (tb *TypeBuilder) WithProperty(prop Property) *TypeBuilder
- type Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AugmentObservablesByReflection ¶
func AugmentObservablesByReflection(tb *TypeBuilder) error
func RegisterAugmenter ¶
func RegisterAugmenter(aug TypeAugmenter)
func RegisterProperty ¶
func RegisterPropertyFunc ¶
func RegisterPropertyMethod ¶
Types ¶
type Node ¶
type Node interface { Value IsLeaf() bool Children() collectionsfx2.ObservableList[Node] }
func Introspect ¶
func Introspect(value interface{}) Node
func IntrospectValue ¶
type Type ¶
type TypeAugmenter ¶
type TypeAugmenter interface {
AugmentType(tb *TypeBuilder) error
}
type TypeAugmenterFunc ¶
type TypeAugmenterFunc func(tb *TypeBuilder) error
func (TypeAugmenterFunc) AugmentType ¶
func (t TypeAugmenterFunc) AugmentType(tb *TypeBuilder) error
type TypeBuilder ¶
func NewTypeBuilder ¶
func NewTypeBuilder(name string, runtimeType reflect.Type) *TypeBuilder
func (*TypeBuilder) Build ¶
func (tb *TypeBuilder) Build() Type
func (*TypeBuilder) IsDirty ¶
func (tb *TypeBuilder) IsDirty() bool
func (*TypeBuilder) Name ¶
func (tb *TypeBuilder) Name() string
func (*TypeBuilder) Properties ¶
func (tb *TypeBuilder) Properties() []Property
func (*TypeBuilder) Property ¶
func (tb *TypeBuilder) Property(name string) Property
func (*TypeBuilder) RuntimeType ¶
func (tb *TypeBuilder) RuntimeType() reflect.Type
func (*TypeBuilder) WithProperties ¶
func (tb *TypeBuilder) WithProperties(props ...Property) *TypeBuilder
func (*TypeBuilder) WithProperty ¶
func (tb *TypeBuilder) WithProperty(prop Property) *TypeBuilder
Click to show internal directories.
Click to hide internal directories.