spinner

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TerminalSpinner

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

If os.Stderr is attached to a terminal, calling `Printf` will write a short message to stderr, overwriting the last such message.

func NewTerminalSpinner

func NewTerminalSpinner() TerminalSpinner

Return a new Termial Spinner.

func (*TerminalSpinner) Printf

func (t *TerminalSpinner) Printf(format string, a ...any)

Printf will write a short message to stderr (if stderr is iattached to a terminal), overwriting the last such message, if that message was a contained no newline bytes.

Jump to

Keyboard shortcuts

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