output

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 27, 2026 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Errorf

func Errorf(format string, args ...any)

func Infof

func Infof(format string, args ...any)

func Printf

func Printf(format string, args ...any)

func SetQuiet

func SetQuiet(q bool)

func Warnf

func Warnf(format string, args ...any)

Types

type Table

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

func NewTable

func NewTable() *Table

func NewTableWriter

func NewTableWriter(out io.Writer) *Table

func (*Table) Flush

func (t *Table) Flush() error

func (*Table) Row

func (t *Table) Row(cols ...string)

type Tracker

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

func NewTracker

func NewTracker() *Tracker

func (*Tracker) Add

func (t *Tracker) Add(name string)

func (*Tracker) Done

func (t *Tracker) Done(name string)

func (*Tracker) Fail

func (t *Tracker) Fail(name string, err error)

func (*Tracker) Start

func (t *Tracker) Start()

func (*Tracker) Stop

func (t *Tracker) Stop()

Stop is safe to call more than once and is a no-op if Start was never called. The sync.Once protects the channel close; the atomic `started` flag protects against blocking forever on a `done` that no goroutine will ever close.

func (*Tracker) Update

func (t *Tracker) Update(name string, downloaded, total int64)

Jump to

Keyboard shortcuts

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