Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RegistryObject = NewComponentRegistry() Register = RegistryObject.Register Namespace = RegistryObject.Namespace Render = RegistryObject.Render )
Functions ¶
This section is empty.
Types ¶
type ComponentFunc ¶
type ComponentFunc = interface{} // func(...interface{}) -> Component
type ComponentRegistry ¶
type ComponentRegistry struct {
// contains filtered or unexported fields
}
func NewComponentRegistry ¶
func NewComponentRegistry() *ComponentRegistry
func (*ComponentRegistry) Namespace ¶
func (r *ComponentRegistry) Namespace(name string) Registry
func (*ComponentRegistry) Register ¶
func (r *ComponentRegistry) Register(name string, componentFn ComponentFunc)
func (*ComponentRegistry) Render ¶
func (r *ComponentRegistry) Render(name string, args ...interface{}) Component
Click to show internal directories.
Click to hide internal directories.