zoutput

package
v0.0.0-...-473e0bf Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2019 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DOT = iota
	EQUAL
	STAR
	RANDOM
	ARROWS
)

Variables

This section is empty.

Functions

func ProgressBar

func ProgressBar(c chan int, size int)

func ScrollBar

func ScrollBar(c chan int, kind int)

ScrollBar 滚动条 指示当前程序正在运行, 不表示进度信息 当前外部逻辑运行完毕后,close(c)之后, ScrollBar会自行退出

##### Example

```go

c := make(chan int)
go ScrollBar(c, DOT)
time.Sleep(5 * time.Second)
close(c)

```

Types

This section is empty.

Jump to

Keyboard shortcuts

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