I'm using Gin with angularjs, since angular also use {{ }} we have change the action delimiters of go templates.

Comment From: shaunnbarron

I use Context.Data(code, content-type, data) to serve Angular templates. Hope this helps anyone struggling with this...

Comment From: diegogub

I solved it doing so:

html, err := template.New("").Delims("[[", "]]").ParseFiles("site/index.html", "site/login.html", "site/signup.html") if err != nil { panic(err) } router.SetHTMLTemplate(html)

Comment From: behouba

This also worked for me:

...
router.Delims("[[", "]]")
router.LoadHTMLGlob("website/templates/*")
...

router is of type *gin.Engine