Versions in this module Expand all Collapse all v0 v0.3.0 Jun 23, 2019 Changes in this version + func AddFuncMap(key string, fn interface{}) error + func AddTemplateExt(ext string) + func AddViewPath(viewPath string) error + func AssetsCSS(text string) template.HTML + func AssetsJs(text string) template.HTML + func BuildTemplate(dir string, files ...string) error + func Compare(a, b interface{}) (equal bool) + func CompareNot(a, b interface{}) (equal bool) + func Date(t time.Time, format string) string + func DateFormat(t time.Time, layout string) (datestring string) + func DateParse(dateString, format string) (time.Time, error) + func ExecuteTemplate(wr io.Writer, name string, data interface{}) error + func ExecuteViewPathTemplate(wr io.Writer, name string, viewPath string, data interface{}) error + func HTML2str(html string) string + func HasTemplateExt(paths string) bool + func Htmlquote(text string) string + func Htmlunquote(text string) string + func MapGet(arg1 interface{}, arg2 ...interface{}) (interface{}, error) + func NotNil(a interface{}) (isNil bool) + func ParseForm(form url.Values, obj interface{}) error + func Register() common.Caller + func RenderForm(obj interface{}) template.HTML + func SetTemplateFSFunc(fnt templateFSFunc) + func Str2html(raw string) template.HTML + func Substr(s string, start, length int) string + func URLFor(endpoint string, values ...interface{}) string + func Walk(fs http.FileSystem, root string, walkFn filepath.WalkFunc) error + type CallerCfg struct + Debug bool + TemplateLeft string + TemplateRight string + TplExt string + ViewPath string + func Config() CallerCfg + type CallerMuses struct + Tpl CallerTpl + type CallerTpl struct + TplBeego CallerCfg + type Cfg struct + Muses CallerMuses + type FileSystem struct + func (d FileSystem) Open(name string) (http.File, error) + type Tmpl struct + Data map[interface{}]interface{} + Layout string + LayoutSections map[string]string + TplExt string + TplName string + TplPrefix string + ViewPath string + func Caller() (obj *Tmpl, err error) + func (c *Tmpl) Init(tplExt, viewPath string) + func (c *Tmpl) RenderBytes() ([]byte, error) + func (c *Tmpl) SetTplPath(tplPath string)