Using html/template I am trying to use one of my own functions inside a template. Unfortunately I am unable to use the function map feature of go\'s templates. All
html/template
The solution is to have same names in the function New() and ParseFiles() a suggested by @user321277
var tmplGet = template.Must(template.New("base.html").Funcs(funcMap).ParseFiles("tmpl/base.html", "tmpl/get.html"))