Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InvalidTemplateError ¶
type InvalidTemplateError struct {
Template string
}
InvalidTemplateError is returned when a variable template is not in a valid format
func Substitute ¶
func Substitute(template string, mapping Mapping) (result string, err *InvalidTemplateError)
Substitute variables in the string with their values
func (InvalidTemplateError) Error ¶
func (e InvalidTemplateError) Error() string
Click to show internal directories.
Click to hide internal directories.