Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register[T, G any](factory *TypeSwitch[T], builder func(G) T)
Types ¶
type TypeSwitch ¶
type TypeSwitch[T any] struct { // contains filtered or unexported fields }
func (TypeSwitch[T]) Run ¶
func (tf TypeSwitch[T]) Run(op nodes.OutputPort) T
func (TypeSwitch[T]) Types ¶
func (tf TypeSwitch[T]) Types() []string
Click to show internal directories.
Click to hide internal directories.