I am using https://github.com/cbroglie/mustache for rendering mustache file.I want basically this example to work in go lang.But I guess custom function is not there.
Template:
{{#wrapped}}
{{name}} is awesome.
{{/wrapped}
}
{
"name": "Willy",
"wrapped": function() {
return function(text, render) {
return "<b>" + render(text) + "</b>"
}
}
}
Output:
Willy is awesome.
Basically I want to use my custom defined function to render mustache in go.How is this possible can anyone tell me.