progress

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProgressBar

type ProgressBar struct {
	Total int
	// contains filtered or unexported fields
}

func NewProgressBar

func NewProgressBar(total int) *ProgressBar

func (*ProgressBar) Increment

func (bar *ProgressBar) Increment(size int)

func (*ProgressBar) Start

func (bar *ProgressBar) Start()

func (*ProgressBar) Wait

func (bar *ProgressBar) Wait()

type ProgressWriter

type ProgressWriter struct {
	Writer *bufio.Writer
	// contains filtered or unexported fields
}

func NewProgressWriter

func NewProgressWriter(w io.Writer, total int) ProgressWriter

func (ProgressWriter) Flush

func (pw ProgressWriter) Flush()

func (ProgressWriter) Wait

func (pw ProgressWriter) Wait()

func (ProgressWriter) Write

func (pw ProgressWriter) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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