Given that text and html templates are separate calls anyways, why not just 
make separate calls for your custom funcmap?  For example:

package template

import (
  html "html/template"
  text "text/template"
)

func Html(name string, fm html.FuncMap) *html.Template {
  return html.New(name).Funcs(fm)
}

func Text(name string, fm text.FuncMap) *text.Template {
  return text.New(name).Funcs(fm)
}

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to