progress

package
v1.44.5 Latest Latest
Warning

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

Go to latest
Published: May 11, 2026 License: BSD-3-Clause Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExampleTransferWithSpeed

func ExampleTransferWithSpeed()

Types

type TransferStats

type TransferStats struct {
	FileSize int64
	// contains filtered or unexported fields
}

func NewTransferStats

func NewTransferStats(fileSize int64, filename string) *TransferStats

func (*TransferStats) DoProgressWithSpeed added in v1.5.3

func (s *TransferStats) DoProgressWithSpeed(current int64, silent bool, part int64)

Allow user choice of silent or not.

func (*TransferStats) PrintProgressWithSpeed

func (s *TransferStats) PrintProgressWithSpeed(current int64)

silent if not stdout is not a terminal.

func (*TransferStats) ProgressString added in v1.12.20

func (s *TransferStats) ProgressString(current int64, part int64) string

get the string back, user can decide to print or not.

func (*TransferStats) SilentProgressWithSpeed added in v1.5.3

func (s *TransferStats) SilentProgressWithSpeed(current int64)

Jump to

Keyboard shortcuts

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