Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTMLTemplateOutputFormatter ¶
type HTMLTemplateOutputFormatter struct { TemplateName string Lookup render.TemplateLookup Data map[string]interface{} }
HTMLTemplateOutputFormatter wraps a normal HTML table output formatter, and allows a template to be added in the back in the front.
func NewHTMLTemplateOutputFormatter ¶
func NewHTMLTemplateOutputFormatter( lookup render.TemplateLookup, templateName string, options ...HTMLTemplateOutputFormatterOption, ) *HTMLTemplateOutputFormatter
func (*HTMLTemplateOutputFormatter) Output ¶
func (H *HTMLTemplateOutputFormatter) Output(c *gin.Context, pc *glazed.CommandContext, w io.Writer) error
type HTMLTemplateOutputFormatterOption ¶
type HTMLTemplateOutputFormatterOption func(*HTMLTemplateOutputFormatter)
func WithHTMLTemplateOutputFormatterData ¶
func WithHTMLTemplateOutputFormatterData(data map[string]interface{}) HTMLTemplateOutputFormatterOption
Click to show internal directories.
Click to hide internal directories.