Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TemplateDataExtractor ¶
type TemplateDataExtractor interface { // ExtractPlaceHolders processes the template and extract raw, clean and mapped placeholders. ExtractPlaceHolders() // GetRawData retrieves raw placeholders data. GetRawData() []string // GetCleanData retrieves clean placeholders data. GetCleanData() []string // GetMapData retrieves mapped placeholders data. GetMapData() map[string]interface{} // contains filtered or unexported methods }
func NewTemplateDataExtractor ¶
func NewTemplateDataExtractor(t *template.Template) (TemplateDataExtractor, error)
NewTemplateDataExtractor creates a new templateDataExtractor struct with the provided template and returns TemplateDataExtractor interface and an error if parameter *template.Template is nil.
Click to show internal directories.
Click to hide internal directories.