How to execute a function with no return value in golang template

I want to execute a function with no return value in template. How can I do that?

this function is hung on an entity, and when I execute it, template reports an error, saying that the function does not have any return value. Can golang template only execute functions with return values?

May.07,2022

write a function that returns an empty string

Menu