2023-08-25 21:37:37 +00:00
|
|
|
package plugins
|
|
|
|
|
|
|
|
type (
|
2024-01-01 16:52:18 +00:00
|
|
|
// TemplateFuncDocumentation contains a documentation for a template
|
|
|
|
// function to be rendered into the documentation site
|
2023-08-25 21:37:37 +00:00
|
|
|
TemplateFuncDocumentation struct {
|
|
|
|
Name string
|
|
|
|
Description string
|
|
|
|
Syntax string
|
|
|
|
Example *TemplateFuncDocumentationExample
|
|
|
|
Remarks string
|
|
|
|
}
|
|
|
|
|
2024-01-01 16:52:18 +00:00
|
|
|
// TemplateFuncDocumentationExample contains an example of the
|
|
|
|
// function execution to be rendered as an example how to use the
|
|
|
|
// template function
|
2023-08-25 21:37:37 +00:00
|
|
|
TemplateFuncDocumentationExample struct {
|
|
|
|
MatchMessage string
|
|
|
|
MessageContent string
|
|
|
|
Template string
|
|
|
|
ExpectedOutput string
|
|
|
|
FakedOutput string
|
|
|
|
}
|
|
|
|
)
|