spinner

package
v0.0.0-...-65a3a7f Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const COLOUR_BOLD = "\033[1m"
View Source
const COLOUR_CLEAR = "\033[0m"
View Source
const COLOUR_GREEN = "\033[32m"
View Source
const HIDE_CURSOR = "\033[?25l"
View Source
const SHOW_CURSOR = "\033[?25h"

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Message(string)
	Stop()
}

func New

func New(msg string) Logger

type Spinner

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

func (*Spinner) Message

func (s *Spinner) Message(msg string)

func (*Spinner) Stop

func (s *Spinner) Stop()

type Terminal

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

func (*Terminal) Message

func (s *Terminal) Message(msg string)

func (*Terminal) Stop

func (s *Terminal) Stop()

Jump to

Keyboard shortcuts

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