•Text
Generating textual output from template.
•Input parameters object
template
(text: <required>)
- The input text for a template is UTF-8-encoded text in any format. Control structures are delimited by "{{" and "}}". All text outside actions is copied to the output unchanged. To obtain data from an object, you can use the {{ .FieldName }} action, which will replace it with FieldName value of given struct.arbitrary number of parameters
(any allowed type: <optional>)
- Any valid parameter defined by Go's template package
•Output parameters object
result
(text: <required>)
- Result text.
•Example