Versions in this module Expand all Collapse all v0 v0.0.1 Jun 19, 2022 Changes in this version + const DefaultMediaType + const DefaultMissingKey + const MissingKeyDefault + const MissingKeyError + const MissingKeyInvalid + const MissingKeyZero + var ErrStopSearch = errors.New("sentinel error indicating a search should end") + func FirstFile(result *string, info *fs.FileInfo, names ...string) func(string) error + func MediaType(t Template) (mediaType string) + func UpSearch(dir string, fns ...func(string) error) (err error) + type InvalidMissingKeyError struct + Value string + func (imke *InvalidMissingKeyError) Error() string + type KeyValues struct + func (kvs KeyValues) Append(more Model) KeyValues + func (kvs KeyValues) ApplyDefaults(m Model) + func (kvs KeyValues) ApplyOverrides(m Model) + func (kvs KeyValues) Extend(more KeyValues) KeyValues + type Matcher interface + Match func(string) bool + func ParsePatterns(patterns ...string) (Matcher, error) + type Matchers []Matcher + func (ms Matchers) Match(v string) bool + type MediaTyper interface + MediaType func() string + type Model map[string]interface + type Parser interface + Parse func(name, content string) (Template, error) + func NewParser(c ParserConfig) (Parser, error) + type ParserConfig struct + FuncMap map[string]interface{} + HTML bool + LeftDelim string + MediaType string + MissingKey string + RightDelim string + type Selector interface + Select func(name string) (Parser, bool) + func NewSelector(configs ...SelectorConfig) (Selector, error) + type SelectorConfig struct + Parser ParserConfig + Patterns []string + type Template interface + Execute func(output io.Writer, data interface{}) error + Name func() string + func MediaTemplate(t Template, mediaType string) Template