Create custom GoWrap templates
masterYou can write custom templates to provide specific functionality to your interfaces.
Template Capabilities:
- Sprig Library: All functions from the Sprig template library are available.
- GoWrap Built-in Functions:
up: Converts input to UPPERCASE.down: Converts input to lowercase.upFirst: Converts the first letter to Uppercase.downFirst: Converts the first letter to lowercase.replace: Replaces occurrences of the first argument with the second.snake: Converts input to snake_case.
Data Structure:
The information passed to your templates is defined by the TemplateInputs struct (see TemplateInputs documentation).