progressdots

package
v1.34.3 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2020 License: Apache-2.0 Imports: 4 Imported by: 17

Documentation

Index

Constants

View Source
const (
	DefaultInterval = 2 * time.Second
	DefaultEasing   = 10
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ProgressDots

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

func New

func New(easingOptional ...int) *ProgressDots

New creates the channel to handle progress dots It takes easingOptional as optional parameter to control dots interval

func (*ProgressDots) SetInterval

func (s *ProgressDots) SetInterval(interval time.Duration)

SetInterval sets the interval

func (*ProgressDots) SetWriter added in v1.10.0

func (s *ProgressDots) SetWriter(out io.Writer)

SetWriter sets the writer for the output

func (*ProgressDots) Start

func (s *ProgressDots) Start()

Start starts the dots

func (*ProgressDots) Stop

func (s *ProgressDots) Stop()

Stop stops the dots

Jump to

Keyboard shortcuts

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