Versions in this module Expand all Collapse all v0 v0.27.1 Jul 30, 2020 Changes in this version + var CommentColor = color.New(color.FgBlue) + var ErrorColor = color.New(color.FgRed) + var ExtraColor = color.New(color.FgCyan, color.Faint) + var ExtraKeyColor = color.New(color.Faint) + var FailColor = color.New(color.FgRed) + var GrayColor = color.New(color.Faint) + var StdColor = color.New() + var SuccColor = color.New(color.FgGreen) + var TypeColor = color.New(color.FgYellow) + var ValueColor = color.New(color.FgCyan) + func Dump(w io.Writer, v interface{}) + func StrWidth(s string) (n int) + func ValidateSummary(trendColumns []string) error + type ErrInvalidStat struct + func (e ErrInvalidStat) Error() string + type Field interface + Clean func(s string) (interface{}, error) + GetContents func(io.Reader) (string, error) + GetKey func() string + GetLabel func() string + GetLabelExtra func() string + type Form struct + Banner string + Fields []Field + func (f Form) Run(r io.Reader, w io.Writer) (map[string]interface{}, error) + type PasswordField struct + Key string + Label string + Min int + func (f PasswordField) Clean(s string) (interface{}, error) + func (f PasswordField) GetContents(r io.Reader) (string, error) + func (f PasswordField) GetKey() string + func (f PasswordField) GetLabel() string + func (f PasswordField) GetLabelExtra() string + type StringField struct + Default string + Key string + Label string + Max int + Min int + func (f StringField) Clean(s string) (interface{}, error) + func (f StringField) GetContents(r io.Reader) (string, error) + func (f StringField) GetKey() string + func (f StringField) GetLabel() string + func (f StringField) GetLabelExtra() string + type Summary struct + func NewSummary(cols []string) *Summary + func (s *Summary) SummarizeMetrics(w io.Writer, indent string, data SummaryData) + func (s *Summary) SummarizeMetricsJSON(w io.Writer, data SummaryData) error + type SummaryData struct + Metrics map[string]*stats.Metric + RootGroup *lib.Group + Time time.Duration + TimeUnit string