progress

package module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

README

progress

Release Download GitHub

installation

go get -u github.com/chenquan/progress

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Process

type Process struct {
	Total float64

	Len    int
	Format string
	W      io.Writer
	Prefix string
	Cancel func()
	// contains filtered or unexported fields
}

func (*Process) Done

func (p *Process) Done()

func (*Process) IncTotal added in v0.2.0

func (p *Process) IncTotal()

func (*Process) IncValue added in v0.2.0

func (p *Process) IncValue()

func (*Process) SetFormat

func (p *Process) SetFormat(format string)

func (*Process) SetLen

func (p *Process) SetLen(n int)

func (*Process) SetPrefix

func (p *Process) SetPrefix(prefix string)

func (*Process) SetTotal

func (p *Process) SetTotal(v float64)

func (*Process) SetValue

func (p *Process) SetValue(v float64)

func (*Process) SetWriter

func (p *Process) SetWriter(w io.Writer)

Jump to

Keyboard shortcuts

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