xloading

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Loading

type Loading interface {
	Style(Style) Loading   // 加载样式
	Symbol(Symbol) Loading // 结束字符
	Speed(int) Loading     // 加载速度
	Start() Loading        // 开始加载
	Success(...string)     // 加载成功
	Fail(...string)        // 加载失败
}

Loading ...

func New

func New(messages ...string) Loading

New ...

type Style

type Style int

Style 加载样式

const (
	Style1 Style = iota
	Style2
	Style3
	Style4
	Style5
)

样式

func (Style) Elements

func (t Style) Elements() []string

Elements ...

type Symbol

type Symbol int

Symbol 结束符号

const (
	Symbol1 Symbol = iota
	Symbol2
	Symbol3
	Symbol4
	Symbol5
)

符号

func (Symbol) Elements

func (t Symbol) Elements() []string

Elements ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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