progress

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2025 License: Unlicense Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Render

func Render(ctx context.Context, wg *sync.WaitGroup, messageChannel <-chan string)

TODO: clean up this garbage

Render processes messages from a channel and displays them in the terminal, overwriting the previous output. It stops when the context is canceled or the message channel is closed.

func Render0

func Render0()

func Render1

func Render1(c context.Context, pollingCh chan bool, rFunc PrinterFunc)

func TestRender2

func TestRender2()

Types

type PrinterFunc

type PrinterFunc func(msg any)

type ProgressMessage

type ProgressMessage struct {
	Mutex sync.Mutex
}

Jump to

Keyboard shortcuts

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