Golang and AngularJS template conflict

angularjs, go

Solution

The idea behind AngularJS is to have all the rendering process run on the client side.

If you follow this logic all along, you do not need any rendering on the server side (e.g : no call to `template.Execute`) when serving AngularJS html files, you simply have to serve static content.

Problem

I have a conflict with golang html/template and angularjs delimiters. I know that there is a method that lets to change delimiter in Go, but it does not work for me. Maybe it should be called before parsing of files? Could you please provide an example, how it should be implemented. I found a lot of comments that AngularJS and Go should not have any conflict because they should be used separately. As I understand, Go should be used only for backend (REST). The question is, how AngularJS, HTML should be loaded? In this case, should I have to servers?

Original source