AddTemplateFunc adds a template function that's available to Usage and Help template generation.
(name string, tmplFunc interface{})
| 83 | // AddTemplateFunc adds a template function that's available to Usage and Help |
| 84 | // template generation. |
| 85 | func AddTemplateFunc(name string, tmplFunc interface{}) { |
| 86 | templateFuncs[name] = tmplFunc |
| 87 | } |
| 88 | |
| 89 | // AddTemplateFuncs adds multiple template functions that are available to Usage and |
| 90 | // Help template generation. |
no outgoing calls