Versions in this module Expand all Collapse all v0 v0.2.0 Jul 27, 2025 v0.1.0 Jul 23, 2025 Changes in this version + func ClearCache() + func ExtractPropertyNames(template string) []string + func ExtractPropertyNamesFromTemplate(tmpl *MessageTemplate) []string + type DestructuringHint int + const AsScalar + const Default + const Destructure + const Stringify + type MessageTemplate struct + Raw string + Tokens []MessageTemplateToken + func Parse(template string) (*MessageTemplate, error) + func ParseCached(template string) (*MessageTemplate, error) + func (mt *MessageTemplate) Render(properties map[string]interface{}) string + type MessageTemplateToken interface + Render func(properties map[string]interface{}) string + type PropertyToken struct + Alignment int + Destructuring DestructuringHint + Format string + PropertyName string + func (p *PropertyToken) Render(properties map[string]interface{}) string + type TextToken struct + Text string + func (t *TextToken) Render(properties map[string]interface{}) string