Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicToken ¶
BasicToken generic definition of a template element
func (*BasicToken[T]) GetDescription ¶
func (t *BasicToken[T]) GetDescription() string
GetDescription returns the description of the token (NO-OP)
func (*BasicToken[T]) GetExtractor ¶
func (t *BasicToken[T]) GetExtractor() Extractor[T]
GetExtractor returns the extractor of the token
func (*BasicToken[T]) GetKey ¶
func (t *BasicToken[T]) GetKey() string
GetKey returns the key of the token
type CompiledTemplate ¶
type CompiledTemplate[T any] struct { // contains filtered or unexported fields }
CompiledTemplate dynamically generated template
func (*CompiledTemplate[T]) Execute ¶
func (ct *CompiledTemplate[T]) Execute(input T) string
Execute executes the template with the given type
type RichToken ¶
type RichToken[T any] struct { BasicToken[T] Description string }
RichToken generic element of a template with a description
func (*RichToken[T]) GetDescription ¶
GetDescription returns the description of the token
Click to show internal directories.
Click to hide internal directories.