Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Now = time.Now
Now returns the current time
Functions ¶
func PrettyJSON ¶
PrettyJSON will indent JSON to be pretty
Types ¶
type JSONWriter ¶
JSONWriter implements result Writer
func (JSONWriter) Write ¶
func (jw JSONWriter) Write(reports reports) error
Write writes the reports in JSON format
type TemplateWriter ¶
TemplateWriter write result in custom format defined by user's template
func NewTemplateWriter ¶
func NewTemplateWriter(output io.Writer, outputTemplate string) (*TemplateWriter, error)
NewTemplateWriter is the factory method to return TemplateWriter object
func (TemplateWriter) Write ¶
func (tw TemplateWriter) Write(reports reports) error
Write writes result
Click to show internal directories.
Click to hide internal directories.