Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JSONFormatter ¶
type JSONFormatter struct{}
JSONFormatter renders output as JSON
func NewJSONFormatter ¶
func NewJSONFormatter() *JSONFormatter
NewJSONFormatter creates a new JSON formatter
func (*JSONFormatter) Format ¶
func (f *JSONFormatter) Format(b format.Buildable) (string, error)
Format renders a single buildable structure
func (*JSONFormatter) FormatMultiple ¶
func (f *JSONFormatter) FormatMultiple(builders []format.Buildable) (string, error)
FormatMultiple renders multiple buildable structures
func (*JSONFormatter) SupportsColors ¶
func (f *JSONFormatter) SupportsColors() bool
SupportsColors returns false (JSON doesn't support colors)
type MarkdownFormatter ¶
type MarkdownFormatter struct{}
MarkdownFormatter renders output as Markdown
func NewMarkdownFormatter ¶
func NewMarkdownFormatter() *MarkdownFormatter
NewMarkdownFormatter creates a new Markdown formatter
func (*MarkdownFormatter) Format ¶
func (f *MarkdownFormatter) Format(b format.Buildable) (string, error)
Format renders a single buildable structure
func (*MarkdownFormatter) FormatMultiple ¶
func (f *MarkdownFormatter) FormatMultiple(builders []format.Buildable) (string, error)
FormatMultiple renders multiple buildable structures
func (*MarkdownFormatter) Name ¶
func (f *MarkdownFormatter) Name() string
Name returns the formatter name
func (*MarkdownFormatter) SupportsColors ¶
func (f *MarkdownFormatter) SupportsColors() bool
SupportsColors returns false (Markdown doesn't support colors)
type TextFormatter ¶
type TextFormatter struct {
// contains filtered or unexported fields
}
TextFormatter renders output as plain text with box-drawing characters
func NewTextFormatter ¶
func NewTextFormatter(useColors bool) *TextFormatter
NewTextFormatter creates a new text formatter
func (*TextFormatter) Format ¶
func (f *TextFormatter) Format(b format.Buildable) (string, error)
Format renders a single buildable structure
func (*TextFormatter) FormatMultiple ¶
func (f *TextFormatter) FormatMultiple(builders []format.Buildable) (string, error)
FormatMultiple renders multiple buildable structures
func (*TextFormatter) SupportsColors ¶
func (f *TextFormatter) SupportsColors() bool
SupportsColors returns true if the formatter supports color output
type XMLFormatter ¶
type XMLFormatter struct{}
XMLFormatter renders output as XML
func NewXMLFormatter ¶
func NewXMLFormatter() *XMLFormatter
NewXMLFormatter creates a new XML formatter
func (*XMLFormatter) Format ¶
func (f *XMLFormatter) Format(b format.Buildable) (string, error)
Format renders a single buildable structure
func (*XMLFormatter) FormatMultiple ¶
func (f *XMLFormatter) FormatMultiple(builders []format.Buildable) (string, error)
FormatMultiple renders multiple buildable structures
func (*XMLFormatter) SupportsColors ¶
func (f *XMLFormatter) SupportsColors() bool
SupportsColors returns false (XML doesn't support colors)
type YAMLFormatter ¶
type YAMLFormatter struct{}
YAMLFormatter renders output as YAML
func NewYAMLFormatter ¶
func NewYAMLFormatter() *YAMLFormatter
NewYAMLFormatter creates a new YAML formatter
func (*YAMLFormatter) Format ¶
func (f *YAMLFormatter) Format(b format.Buildable) (string, error)
Format renders a single buildable structure
func (*YAMLFormatter) FormatMultiple ¶
func (f *YAMLFormatter) FormatMultiple(builders []format.Buildable) (string, error)
FormatMultiple renders multiple buildable structures
func (*YAMLFormatter) SupportsColors ¶
func (f *YAMLFormatter) SupportsColors() bool
SupportsColors returns false (YAML doesn't support colors)