spinner

package
v1.5.9 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package spinner implements spinner.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Spinner

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

func New

func New(wr io.Writer, suffix string) (s Spinner)

New returns a new spinner based on the time. If the local time is day, returns "🌍". If the local time is night, returns "🌓".

func (Spinner) Restart

func (s Spinner) Restart()

func (Spinner) Stop

func (s Spinner) Stop()

Jump to

Keyboard shortcuts

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