spinner

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package spinner displays a progress indicator with a live-updating status message.

If the destination io.Writer is a terminal, the spinner will use color and will display progress updates on a single, animated line. Otherwise, color and animation will be disabled and each update will be printed on a new line.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type T

type T struct {
	*yacspin.Spinner
	// contains filtered or unexported fields
}

func New

func New(out io.Writer, title string) *T

func Start

func Start(out io.Writer, title string) *T

Start creates a new spinner and starts it immediately.

func (*T) Message

func (t *T) Message(msg string)

func (*T) Messagef

func (t *T) Messagef(format string, args ...interface{})

func (*T) StopMessagef

func (t *T) StopMessagef(format string, args ...interface{})

Jump to

Keyboard shortcuts

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