formatters

package
v0.4.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 25, 2023 License: MIT Imports: 6 Imported by: 0

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

type HTMLTemplateOutputFormatterOption

type HTMLTemplateOutputFormatterOption func(*HTMLTemplateOutputFormatter)

func WithHTMLTemplateOutputFormatterData

func WithHTMLTemplateOutputFormatterData(data map[string]interface{}) HTMLTemplateOutputFormatterOption

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL