5
cómo mostrar el contenido de la plantilla?golang plantillas de salida
paquete principal
import (
"fmt"
"html/template"
"os"
)
func main() {
t := template.New("another")
t,e:=t.ParseFiles("test.html")
if(e!=nil){
fmt.Println(e);
}
t.Execute(os.Stdout, nil)
}
¿Por qué no lo hace? test.html existe
¿Qué hay en test.html? – kristianp
texto Lala lalal ulalala – Accex