fancy

package
v0.0.0-...-4f60042 Latest Latest
Warning

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

Go to latest
Published: May 4, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Black = iota
	Red
	Green
	Yellow
	Blue
	Magenta
	Cyan
	White

	Default
)

Variables

This section is empty.

Functions

func CursorColumn

func CursorColumn(n int)

func CursorDown

func CursorDown(n int)

func CursorRestore

func CursorRestore()

func CursorSave

func CursorSave()

func CursorUp

func CursorUp(n int)

func EraseRemainingLine

func EraseRemainingLine()

Types

type Print

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

func (*Print) Background

func (p *Print) Background(color int) *Print

func (*Print) Blinking

func (p *Print) Blinking() *Print

func (*Print) Bold

func (p *Print) Bold() *Print

func (*Print) Color

func (p *Print) Color(color int) *Print

func (*Print) Dim

func (p *Print) Dim() *Print

func (*Print) Format

func (p *Print) Format(str string) string

func (*Print) Italic

func (p *Print) Italic() *Print

func (*Print) Strikethrough

func (p *Print) Strikethrough() *Print

func (*Print) Underline

func (p *Print) Underline() *Print

type ProgressBar

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

func NewProgressBar

func NewProgressBar(width, maxValue int) *ProgressBar

func (*ProgressBar) Print

func (p *ProgressBar) Print(value int)

Jump to

Keyboard shortcuts

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