progress

package
v1.12.42 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2025 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExampleTransferWithSpeed

func ExampleTransferWithSpeed()

Types

type TransferStats

type TransferStats struct {
	// 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) 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
JackTT - Gopher 🇻🇳