report

package
v0.0.0-...-605e3c9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataPoint

type DataPoint struct {
	Name       string
	Commit     string
	Size       int64
	Minified   int64
	Compressed int64
}

DataPoint represents one of the comparison points.

type Report

type Report struct {
	App struct {
		Name   string
		Repo   string
		Commit string
	}
	Trigger      string // Pull request or commit URL.
	Measurements []*DataPoint
}

Report contains information about measurements performed.

func (*Report) SaveJSON

func (r *Report) SaveJSON(path string) error

SaveJSON writes report in JSON format into the given file.

func (*Report) SaveMarkdown

func (r *Report) SaveMarkdown(path string) error

SaveMarkdown writes report in Markdown format into the given file.

func (Report) String

func (r Report) String() string

String renders a human-readable representation of the report in Markdown format.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL