There is not a way to name a function without calling the function. The code {{ listOperate . toCamel}}
calls toCamel
with no arguments.
Write a template function that returns the function:
"toCamelFunc": func() any {
return func(str string) (result string) {
return strcase.ToCamel(str)
}
}
Use it like this: {{ listOperate . toCamelFunc}}