如果我不想在golang模板中使用'{{}}',该怎么办?

I have to use react and golang together for some reason.
However, every time I need to use {{ }} in react, golang's turbulence overlaps with golang's template.
Is there any way that templates in golang will not work?
This should be partial and should not work as a whole because I have to use it.

Just change the delimiters on the Go side to something else before parsing (for example you could use [[ ]] ).

See the docs:

https://golang.org/pkg/text/template/#Template.Delims