Text/template call function

Maybe this tutorial will help:
Using Functions Inside Go Templates

It’s about html templates but as far I know they are the same.

1 Like