Documentation
¶
Overview ¶
Package report prints a metrics.Report as terminal text, Markdown, a one-page HTML file or JSON. Every format is built from the same View, so the numbers cannot drift between them.
Index ¶
- func HTML(w io.Writer, r *metrics.Report) error
- func JSON(w io.Writer, r *metrics.Report) error
- func Markdown(w io.Writer, r *metrics.Report) error
- func Text(w io.Writer, r *metrics.Report) error
- func TrendHTML(w io.Writer, t *metrics.Trend) error
- func TrendJSON(w io.Writer, t *metrics.Trend) error
- func TrendMarkdown(w io.Writer, t *metrics.Trend) error
- func TrendText(w io.Writer, t *metrics.Trend) error
- type StageBar
- type Table
- type TrendGroup
- type TrendView
- type View
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TrendMarkdown ¶
TrendMarkdown writes the trend for a GitHub job summary or an issue.
Types ¶
type TrendGroup ¶
type TrendGroup struct {
Name string
// Summary has one row per series: both ends, the change and a sparkline.
Summary Table
// Full has one row per series and one column per period.
Full Table
Charts []template.HTML
}
TrendGroup is one group of series, laid out for printing.
type TrendView ¶
type TrendView struct {
T *metrics.Trend
Title string
Window string
Groups []TrendGroup
// ByPeriod has one row per period.
ByPeriod Table
}
TrendView is the trend laid out for printing.