progress

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Format

func Format(format string, a ResultsAggregator) (string, error)

func FormatJSON

func FormatJSON(a ResultsAggregator) (string, error)

Types

type Aggregator

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

func NewAggregator

func NewAggregator() *Aggregator

func (*Aggregator) AddResult

func (o *Aggregator) AddResult(name, result string)

func (*Aggregator) GetResults

func (o *Aggregator) GetResults() map[string]string

func (*Aggregator) Notify

func (o *Aggregator) Notify(e observer.Event)

type ResultsAggregator

type ResultsAggregator interface {
	GetResults() map[string]string
}

Jump to

Keyboard shortcuts

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