Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertBinding ¶
AssertBinding assert Binding interface for obj
func Register ¶
func Register(ta TypeAssertor)
Register register custom TypeAssertor to assert Binding/Render interface
func RegisterType ¶
func RegisterType[T any]()
RegisterType[T] register custom TypeAssertor to assert Binding[T]/Render[T] interface
func RegisterType2 ¶
func RegisterType2[B, R any]()
RegisterType2[B, R] register custom TypeAssertor to assert Binding[B]/Render[R] interface
func RegisterType3 ¶
func RegisterType3[B, P, R any]()
RegisterType2[B, P, R] register custom TypeAssertor to assert Binding[B]/Render[R] interface
func RegisterType4 ¶ added in v4.1.0
func RegisterType4[C, T any]()
RegisterType4[C, T] register custom TypeAssertor to assert C, T interface
Types ¶
type Binding ¶
type Binding[T any] interface { Bind(T) mir.Error }
Binding[T] binding interface for custom T context
type Binding2 ¶
type Binding2[R, P any] interface { Bind(R, P) mir.Error }
Binding2[R, P] binding interface for custom R, P context
type Render ¶
type Render[T any] interface { Render(T) }
Render[T] render interface for custom T context
Click to show internal directories.
Click to hide internal directories.