spinner

package
v0.8.6 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package spinner provides essential (empty) spinner

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fn

type Fn func()

Fn callback signature

type Spinner

type Spinner struct {
	Before, After, Prefix, Postfix Fn

	Spin *spin.Spinner
	// contains filtered or unexported fields
}

Spinner essential struct

func New

func New(before, after, prefix, postfix Fn) *Spinner

New returns new spinner struct

func (*Spinner) Start

func (spinner *Spinner) Start()

Start the spinner

func (*Spinner) Stop

func (spinner *Spinner) Stop()

Stop the spinner

Jump to

Keyboard shortcuts

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