package treeificator // Informers inform the parser about the prefix and suffix that make up a node type Informer interface { // Get the prefix starting the informer's node type GetPrefix() string // Get the suffix starting the informer's node type GetSuffix() string // Get the name of the node type. // Each name (in lowercase) may only exist once. The parser will enforce this. GetName() string } // Defa type DefaultInformer struct{} func (defaultinformer *DefaultInformer) GetPrefix() string { return "" } func (defaultinformer *DefaultInformer) GetSuffix() string { return "" } func (defaultinformer *DefaultInformer) GetName() string { return "default" }