progress

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2025 License: MIT Imports: 1 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 interface {
	Start(total int64)
	Update(current int64)
	Finish()
}

Interface for tracking progress

type WriteCounter

type WriteCounter struct {
	Total   int64
	Current int64
	Unknown bool
}

func (*WriteCounter) Finish

func (wc *WriteCounter) Finish()

func (*WriteCounter) Start

func (wc *WriteCounter) Start(total int64)

func (*WriteCounter) Update

func (wc *WriteCounter) Update(current int64)

func (*WriteCounter) Write

func (wc *WriteCounter) Write(p []byte) (int, error)

Create a proxy for io.Writer to capture progress updates

Jump to

Keyboard shortcuts

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