Se notó algo raro con las plantillas de ir cuando trato de usar Funcs y FuncMap. funciona el siguiente código como se esperaba: buffer := bytes.NewBufferString("")
funcMap := template.FuncMap{
Digamos que tengo type Person struct {
Name string
}
func (p *Person) Label() string {
return "This is " + p.Name
}
¿Cómo puedo utilizar este método desde un html/plantilla? Necesitaría