loading

package
v1.6.6 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: Unlicense Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bar

type Bar struct {
	// contains filtered or unexported fields
}

func NewBar

func NewBar() *Bar

NewBar creates a new loading bar

func (*Bar) Close

func (bar *Bar) Close()

Close hides the loading bar and tidies up

func (*Bar) Log

func (bar *Bar) Log(msg string)

Log logs a messages to the terminal without disrupting the rendered loading bar

func (*Bar) SetPercent

func (bar *Bar) SetPercent(percent float64)

SetPercent sets the current percentage completion of the bar, and renders it to the current line

Jump to

Keyboard shortcuts

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