RegisterDefinition registers a new component definition. Returns an error if a definition with the same name already exists.
(def *Definition)
| 27 | // RegisterDefinition registers a new component definition. |
| 28 | // Returns an error if a definition with the same name already exists. |
| 29 | RegisterDefinition(def *Definition) error |
| 30 | |
| 31 | // UnregisterDefinition removes the component definition associated with the given name. |
| 32 | // Returns an error if the definition does not exist. |