humanwriter

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HumanResultWriter

type HumanResultWriter struct {
	// contains filtered or unexported fields
}

func New

func New(out io.Writer, opts ...Option) *HumanResultWriter

func (*HumanResultWriter) WriteResult

func (w *HumanResultWriter) WriteResult(result *api.CheckResult) error

type Option

type Option func(w *HumanResultWriter)

func WithColors

func WithColors(colors bool) Option

func WithMode

func WithMode(mode OutputMode) Option

type OutputMode

type OutputMode int
const (
	// OutputModeTest causes the writer to prepend a plain-text
	// description of the check result (PASS, FAIL, SKIP, etc)
	OutputModeText OutputMode = iota

	// OutputModeEmoji causes the writer to prepend an emoji
	// describing the check result.
	OutputModeEmoji
)

func (OutputMode) String

func (m OutputMode) String() string

Jump to

Keyboard shortcuts

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