progressbar

package
v1.109.1184 Latest Latest
Warning

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

Go to latest
Published: May 4, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bar

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

func NewBar

func NewBar(totalVale int) *Bar

func (*Bar) CountCurrentRate

func (m *Bar) CountCurrentRate()

func (*Bar) CurrentPrintGraphNumber

func (m *Bar) CurrentPrintGraphNumber() int

func (*Bar) GetBackString

func (m *Bar) GetBackString() string

func (*Bar) HidePercent

func (m *Bar) HidePercent()

func (*Bar) HideProgressBar

func (m *Bar) HideProgressBar()

func (*Bar) HideRatio

func (m *Bar) HideRatio()

func (*Bar) NoticePrintString

func (m *Bar) NoticePrintString() string

func (*Bar) PercentPrintString

func (m *Bar) PercentPrintString() string

func (*Bar) PrintBar

func (m *Bar) PrintBar(currValue int)

func (*Bar) PrintEnd

func (m *Bar) PrintEnd(tip ...string)

func (*Bar) PrintSizeBar

func (m *Bar) PrintSizeBar(size int64)

func (*Bar) ProgressPrintString

func (m *Bar) ProgressPrintString() string

func (*Bar) RatioPrintString

func (m *Bar) RatioPrintString() string

func (*Bar) SetBackColor

func (m *Bar) SetBackColor(color int)

func (*Bar) SetBackGraph

func (m *Bar) SetBackGraph(graph string)

func (*Bar) SetColor

func (m *Bar) SetColor(color BarColor)

func (*Bar) SetCurrentValue

func (m *Bar) SetCurrentValue(value int)

func (*Bar) SetEnds

func (m *Bar) SetEnds(start, end string)

func (*Bar) SetGraph

func (m *Bar) SetGraph(graph string)

func (*Bar) SetGraphColor

func (m *Bar) SetGraphColor(color int)

func (*Bar) SetNotice

func (m *Bar) SetNotice(notice string)

func (*Bar) SetNoticeColor

func (m *Bar) SetNoticeColor(color int)

func (*Bar) SetPercentColor

func (m *Bar) SetPercentColor(color int)

func (*Bar) SetProgressGraphColor

func (m *Bar) SetProgressGraphColor(color int)

func (*Bar) SetProgressGraphTotal

func (m *Bar) SetProgressGraphTotal(totalGraph int)

func (*Bar) SetRatioColor

func (m *Bar) SetRatioColor(color int)

type BarColor

type BarColor struct {
	Graph   int
	Back    int
	Ratio   int
	Percent int
	Notice  int
}

type Color

type Color struct {
	Black  int
	Blue   int
	Green  int
	Aqua   int
	Red    int
	Purple int
	Yellow int
	White  int
	Gray   int
}
var (
	FontColor Color
	BackColor Color
)

type Ends

type Ends struct {
	Start string
	End   string
}

Jump to

Keyboard shortcuts

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