xloading

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: May 2, 2025 License: MIT Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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