progress

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Progress

type Progress struct {
	TotalBytes     int64
	ProcessedBytes int64
}

func NewProgress

func NewProgress() *Progress

func (*Progress) AddProcessedBytes

func (p *Progress) AddProcessedBytes(sizeInBytes int64)

func (*Progress) AddTotalBytes

func (p *Progress) AddTotalBytes(sizeInBytes int64)

func (*Progress) GetProcessedBytes

func (p *Progress) GetProcessedBytes() int64

func (*Progress) GetProgressBarString

func (p *Progress) GetProgressBarString(length int) string

func (*Progress) GetProgressPercentage

func (p *Progress) GetProgressPercentage() float64

func (*Progress) GetTotalBytes

func (p *Progress) GetTotalBytes() int64

func (*Progress) SetProcessedBytes

func (p *Progress) SetProcessedBytes(sizeInBytes int64)

func (*Progress) SetTotalBytes

func (p *Progress) SetTotalBytes(sizeInBytes int64)

Jump to

Keyboard shortcuts

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