pbar

package
v0.0.0-...-600909d Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EraseLine = "\x1b[K"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Bar

type Bar struct {
	Current uint
	Total   uint
}

type ProgressBar

type ProgressBar struct {
	Bars []Bar
	// contains filtered or unexported fields
}

func (*ProgressBar) AsString

func (b *ProgressBar) AsString(width uint) string

func (*ProgressBar) SetBarValue

func (b *ProgressBar) SetBarValue(id int, value uint)

func (*ProgressBar) Start

func (b *ProgressBar) Start() error

func (*ProgressBar) String

func (b *ProgressBar) String() string

type WriterWrapper

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

func (*WriterWrapper) Start

func (ww *WriterWrapper) Start() error

func (*WriterWrapper) Stop

func (ww *WriterWrapper) Stop() error

func (*WriterWrapper) Width

func (ww *WriterWrapper) Width() uint

func (*WriterWrapper) Write

func (ww *WriterWrapper) Write(p []byte) (n int, err error)

func (*WriterWrapper) WriteRaw

func (ww *WriterWrapper) WriteRaw(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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