Versions in this module Expand all Collapse all v1 v1.0.1 Aug 15, 2018 Changes in this version + var ErrInvalidPrefix = errors.New("prefix does not match the regular expression ^[a-z]+$") + var HTMLEscape = MapFunc(html.EscapeString) + var UrlEscape = MapFunc(url.QueryEscape) + type Empty struct + func (e Empty) Map(string) string + type HTMLTemplate struct + func NewHTMLTemplate(rs *ReadSeekerMap) *HTMLTemplate + func (h *HTMLTemplate) NewMapper(m map[string]places.Mapper) *HTMLTemplateMapper + type HTMLTemplateMapper struct + func (h *HTMLTemplateMapper) Map(input string) string + type Map interface + Add func(prefix string, mapper places.Mapper) error + func New() Map + func NewConcurrent() Map + type MapFunc func(string) string + func (m MapFunc) Map(placeholder string) string + type MapperAlreadyExistsError string + func (m MapperAlreadyExistsError) Error() string + type NMapper interface + Len func() int + NMap func(n int, sub string) places.Mapper + type ReadSeekerAlreadyExistsError string + func (m ReadSeekerAlreadyExistsError) Error() string + type ReadSeekerMap struct + func NewReadSeekerMap() *ReadSeekerMap + func (r *ReadSeekerMap) Add(name string, rs io.ReadSeeker) error + func (r *ReadSeekerMap) Map(name string) (val string) + type RootDoesNotExistError string + func (r RootDoesNotExistError) Error() string + type RootIsNotDirectoryError string + func (r RootIsNotDirectoryError) Error() string + type Self string + func (s Self) Map(placeholder string) string + type String string + func (s String) Map(string) string + type TemplateLoader struct + func NewTemplateLoader(rootDir string, extension string, ignoreDirs *regexp.Regexp) *TemplateLoader + func (l *TemplateLoader) Load() (*ReadSeekerMap, error)