There is a handler
func Handler(w http.ResponseWriter, r *http.Request) { var templates = template.Must(template.ParseGlob("Templates/Main/*/*")) var doc bytes.Buffer err := templates.ExecuteTemplate(&doc, "indexPage", nil) if err != nil { http.Error(w, err.Error(), http.StatusInternalServerError) return } //templates.Delims("<%", "%>").Funcs(Main_TemplateFuncs).Parse("<%шаблон %>") fmt.Fprintln(w, &doc) } I need to reassign the characters {{and}}, since I use the same characters in angularjs.
There is a function templates.Delims ("<%", "%>"), which reassigns them, but it works if you drop text into Parse after it.
And I have a lot of template.Must files (template.ParseGlob ("Templates / Main / / ")) and how can I process them by replacing the standard processing with <% and%>?