The html/template package uses {{ and }} as default delimiters, which might conflict with any front end template logic that you might have on a served html.

To fix this, you can change the value of the delimiters.

indexTmpl = template.New("index.html").Delims("<%", "%>")
indexTmpl, _ = indexTmpl.ParseFiles("index.html")