ora

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 License: MIT Imports: 4 Imported by: 1

README

ora

Go Reference

terminal spinner in Go.

See elegant terminal spinner ora for Nodejs.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ora

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

func New

func New() *Ora

func (*Ora) Color

func (o *Ora) Color(colors ...string)

set color of spinner

func (*Ora) Fail

func (o *Ora) Fail(text string)

stop spinner, set spinner to red "✖", display text after spinner

func (*Ora) Info

func (o *Ora) Info(text string)

stop spinner, set spinner to blue "ℹ", display text after spinner

func (*Ora) Prefix

func (o *Ora) Prefix(prefix string)

set text display before spinner

func (*Ora) Start

func (o *Ora) Start()

func (*Ora) Stop

func (o *Ora) Stop()

func (*Ora) Succeed

func (o *Ora) Succeed(text string)

stop spinner, set spinner to green "✔", display text after spinner

func (*Ora) Suffix

func (o *Ora) Suffix(suffix string)

set text display after spinner,

func (*Ora) Text

func (o *Ora) Text(text string)

set text display after spinner, alias of @Suffix

func (*Ora) Warn

func (o *Ora) Warn(text string)

stop spinner, set spinner to yellow "⚠", display text after spinner

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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