Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUnknownNamespace = errors.New("YUML namespace \"%s\" not found (have you forgot to register its components?)") ErrUnknownComponent = errors.New("YUML component \"%s\" not found in namespace \"%s\"") )
Component errors
View Source
var ( ErrYUMLRootMustBePage = errors.New("YUML root must be <Page>") ErrCouldNotMakeElement = errors.New("Could not make element \"%s\"") )
Functions ¶
func RegisterComponent ¶
func RegisterComponent(namespace, name string, provider components.ComponentProvider)
RegisterComponent registers a component under a namespace and name so it can be used in YUML code
Types ¶
type ComponentMap ¶
func Components ¶
func Components() (out ComponentMap)
Components returns a map of all registered components
func (ComponentMap) String ¶
func (c ComponentMap) String() (out string)
Click to show internal directories.
Click to hide internal directories.