Documentation ¶
Overview ¶
Package report generates console and Markdown output.
Index ¶
- Variables
- type ConsoleFormatter
- func (f *ConsoleFormatter) PrintCode(msg string)
- func (f *ConsoleFormatter) PrintError(msg error)
- func (f *ConsoleFormatter) PrintHeader(msg string)
- func (f *ConsoleFormatter) PrintList(list []string)
- func (f *ConsoleFormatter) PrintMessage(msg string)
- func (f *ConsoleFormatter) PrintOK(msg string)
- func (f *ConsoleFormatter) PrintSeparator()
- func (f *ConsoleFormatter) PrintSubHeader(msg string)
- func (f *ConsoleFormatter) SetOutput(output io.Writer)
- type Formatter
- type MarkdownFormatter
- func (f *MarkdownFormatter) PrintCode(msg string)
- func (f *MarkdownFormatter) PrintError(msg error)
- func (f *MarkdownFormatter) PrintHeader(msg string)
- func (f *MarkdownFormatter) PrintList(list []string)
- func (f *MarkdownFormatter) PrintMessage(msg string)
- func (f *MarkdownFormatter) PrintOK(msg string)
- func (f *MarkdownFormatter) PrintSeparator()
- func (f *MarkdownFormatter) PrintSubHeader(msg string)
- func (f *MarkdownFormatter) SetOutput(output io.Writer)
- type Reporter
- func (r *Reporter) PrintCode(msg string)
- func (r *Reporter) PrintCodef(format string, args ...interface{})
- func (r *Reporter) PrintError(msg error)
- func (r *Reporter) PrintHeader(msg string)
- func (r *Reporter) PrintHeaderf(format string, args ...interface{})
- func (r *Reporter) PrintList(list []string)
- func (r *Reporter) PrintMessage(msg string)
- func (r *Reporter) PrintMessagef(format string, args ...interface{})
- func (r *Reporter) PrintOK(msg string)
- func (r *Reporter) PrintOKf(format string, args ...interface{})
- func (r *Reporter) PrintSeparator()
- func (r *Reporter) PrintSubHeader(msg string)
- func (r *Reporter) PrintSubHeaderf(format string, args ...interface{})
- func (r *Reporter) SetFormatter(formatType string)
- func (r *Reporter) SetOutputFile(filename *string)
Constants ¶
This section is empty.
Variables ¶
var ConsoleWidth = 80
ConsoleWidth Width of headers
Functions ¶
This section is empty.
Types ¶
type ConsoleFormatter ¶
ConsoleFormatter Console Formatter
func (*ConsoleFormatter) PrintCode ¶
func (f *ConsoleFormatter) PrintCode(msg string)
PrintCode Print Console Code
func (*ConsoleFormatter) PrintError ¶
func (f *ConsoleFormatter) PrintError(msg error)
PrintError Print Console Error
func (*ConsoleFormatter) PrintHeader ¶
func (f *ConsoleFormatter) PrintHeader(msg string)
PrintHeader Prints Console Header
func (*ConsoleFormatter) PrintList ¶
func (f *ConsoleFormatter) PrintList(list []string)
PrintList Print Console List
func (*ConsoleFormatter) PrintMessage ¶
func (f *ConsoleFormatter) PrintMessage(msg string)
PrintMessage Print Console Message
func (*ConsoleFormatter) PrintOK ¶
func (f *ConsoleFormatter) PrintOK(msg string)
PrintOK Print Console OK
func (*ConsoleFormatter) PrintSeparator ¶
func (f *ConsoleFormatter) PrintSeparator()
PrintSeparator Print Console Separator
func (*ConsoleFormatter) PrintSubHeader ¶
func (f *ConsoleFormatter) PrintSubHeader(msg string)
PrintSubHeader Prints Console Sub-Header
func (*ConsoleFormatter) SetOutput ¶
func (f *ConsoleFormatter) SetOutput(output io.Writer)
SetOutput Set Output Writer
type Formatter ¶
type Formatter interface { SetOutput(output io.Writer) PrintMessage(msg string) PrintHeader(msg string) PrintSubHeader(msg string) PrintSeparator() PrintError(msg error) PrintOK(msg string) PrintCode(msg string) PrintList([]string) }
Formatter Formatter Interface
type MarkdownFormatter ¶
MarkdownFormatter Markdown Formatter
func (*MarkdownFormatter) PrintCode ¶
func (f *MarkdownFormatter) PrintCode(msg string)
PrintCode Print Markdown Code
func (*MarkdownFormatter) PrintError ¶
func (f *MarkdownFormatter) PrintError(msg error)
PrintError Print Markdown Error
func (*MarkdownFormatter) PrintHeader ¶
func (f *MarkdownFormatter) PrintHeader(msg string)
PrintHeader Print Markdown Header Message
func (*MarkdownFormatter) PrintList ¶
func (f *MarkdownFormatter) PrintList(list []string)
PrintList Print Markdown List
func (*MarkdownFormatter) PrintMessage ¶
func (f *MarkdownFormatter) PrintMessage(msg string)
PrintMessage Print Markdown Message
func (*MarkdownFormatter) PrintOK ¶
func (f *MarkdownFormatter) PrintOK(msg string)
PrintOK Print Markdown Error
func (*MarkdownFormatter) PrintSeparator ¶
func (f *MarkdownFormatter) PrintSeparator()
PrintSeparator Print Markdown Separator
func (*MarkdownFormatter) PrintSubHeader ¶
func (f *MarkdownFormatter) PrintSubHeader(msg string)
PrintSubHeader Print Markdown Sub-Header Message
func (*MarkdownFormatter) SetOutput ¶
func (f *MarkdownFormatter) SetOutput(output io.Writer)
SetOutput Set Output Writer
type Reporter ¶
type Reporter struct {
Formatter Formatter
}
Reporter Reporter Struct
func (*Reporter) PrintCodef ¶
PrintCodef Print Code Formatted
func (*Reporter) PrintHeaderf ¶
PrintHeaderf Print Header Formatted
func (*Reporter) PrintMessage ¶
PrintMessage Print Message
func (*Reporter) PrintMessagef ¶
PrintMessagef Print Message Formatted
func (*Reporter) PrintSeparator ¶
func (r *Reporter) PrintSeparator()
PrintSeparator Print Separator
func (*Reporter) PrintSubHeader ¶
PrintSubHeader Print Sub-Header
func (*Reporter) PrintSubHeaderf ¶
PrintSubHeaderf Print Header Formatted
func (*Reporter) SetFormatter ¶
SetFormatter Set Formatter
func (*Reporter) SetOutputFile ¶
SetOutputFile Set OutputFile