Versions in this module Expand all Collapse all v0 v0.24.1 Jun 24, 2017 v0.22.1 Jun 13, 2017 Changes in this version + type Namespace struct + func New(d *deps.Deps) *Namespace + func (ns *Namespace) Chomp(s interface{}) (template.HTML, error) + func (ns *Namespace) Contains(s, substr interface{}) (bool, error) + func (ns *Namespace) ContainsAny(s, chars interface{}) (bool, error) + func (ns *Namespace) CountRunes(s interface{}) (int, error) + func (ns *Namespace) CountWords(s interface{}) (int, error) + func (ns *Namespace) FindRE(expr string, content interface{}, limit ...interface{}) ([]string, error) + func (ns *Namespace) HasPrefix(s, prefix interface{}) (bool, error) + func (ns *Namespace) HasSuffix(s, suffix interface{}) (bool, error) + func (ns *Namespace) Replace(s, old, new interface{}) (string, error) + func (ns *Namespace) ReplaceRE(pattern, repl, s interface{}) (_ string, err error) + func (ns *Namespace) SliceString(a interface{}, startEnd ...interface{}) (string, error) + func (ns *Namespace) Split(a interface{}, delimiter string) ([]string, error) + func (ns *Namespace) Substr(a interface{}, nums ...interface{}) (string, error) + func (ns *Namespace) Title(s interface{}) (string, error) + func (ns *Namespace) ToLower(s interface{}) (string, error) + func (ns *Namespace) ToUpper(s interface{}) (string, error) + func (ns *Namespace) Trim(s, cutset interface{}) (string, error) + func (ns *Namespace) TrimPrefix(s, prefix interface{}) (string, error) + func (ns *Namespace) TrimSuffix(s, suffix interface{}) (string, error) + func (ns *Namespace) Truncate(a interface{}, options ...interface{}) (template.HTML, error)