loudprogress

package module
v0.0.0-...-d7a7e07 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2022 License: MIT Imports: 5 Imported by: 2

README

loudprogress

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Render_Bold

func Render_Bold(size uint64, writer io.Writer) (func(uint64), func(uint64))

Bold progress bar

func Render_BoldRainbow

func Render_BoldRainbow(size uint64, writer io.Writer) (func(uint64), func(uint64))

Bold rainbow progress bar

func Render_Simple

func Render_Simple(size uint64, writer io.Writer) (func(uint64), func(uint64))

Simple progress bar

Types

type LoudProgress

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

func NewLoudProgress

func NewLoudProgress(size uint64, render_func RenderFunc) *LoudProgress

Generate new LoudProgress

func (*LoudProgress) ExpandSize

func (lp *LoudProgress) ExpandSize(size uint64) error

Set size

func (*LoudProgress) GetWait

func (lp *LoudProgress) GetWait() time.Duration

Get wait

func (*LoudProgress) Increment

func (lp *LoudProgress) Increment() (uint64, error)

Method for increment current number () -> (lp.current, err)

func (*LoudProgress) IsFinished

func (lp *LoudProgress) IsFinished() bool

Get is_finished

func (*LoudProgress) IsRunning

func (lp *LoudProgress) IsRunning() bool

Get is_running

func (*LoudProgress) SetWait

func (lp *LoudProgress) SetWait(wait time.Duration) error

Set wait

func (*LoudProgress) SetWriter

func (lp *LoudProgress) SetWriter(writer io.Writer)

Set writer

func (*LoudProgress) Start

func (lp *LoudProgress) Start() error

Start rendering progress

type RenderFunc

type RenderFunc func(size uint64, writer io.Writer) (func(uint64), func(uint64)) // alias for rendering function

Directories

Path Synopsis
example module

Jump to

Keyboard shortcuts

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