Описание тега go-templates
Go language supports built-in template functionality. Packages with this support include 1) text/template and; 2) html/template.
Overview
Go language supports built-in template functionality.
Packages with this support include:
text/template
html/template
Features
Go language templates support most of the traditional features found in template-engines including, but not limited to:
- comments
- template variables and expressions
{{
}}
template placeholder syntax (known asactions
)