Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultParser ¶
type DefaultParser struct {
// contains filtered or unexported fields
}
func NewParser ¶
func NewParser(params ParserParams) (*DefaultParser, error)
func (*DefaultParser) Parse ¶
func (p *DefaultParser) Parse(content string) (string, error)
Parse parses the template and replaces the placeholders with the values from the replacements map.
func (*DefaultParser) ParseBytes ¶
func (p *DefaultParser) ParseBytes(content []byte) ([]byte, error)
ParseBytes parses the template and replaces the placeholders with the values from the replacements map.
type Parser ¶
type Parser interface { // Parse parses the template and replaces the placeholders with the values a replacements map. Parse(content string) (string, error) // ParseBytes parses the template and replaces the placeholders with the values a replacements map. ParseBytes(content []byte) ([]byte, error) }
type ParserParams ¶
Click to show internal directories.
Click to hide internal directories.