Documentation
¶
Index ¶
- Constants
- func Danger(args ...interface{})
- func Dangerf(tpl string, args ...interface{})
- func Info(args ...interface{})
- func Infof(tpl string, args ...interface{})
- func Output(c Fg, texts ...interface{})
- func Success(args ...interface{})
- func Successf(tpl string, args ...interface{})
- func Warnning(args ...interface{})
- func Warnningf(tpl string, args ...interface{})
- type Bg
- type Color
- type Fg
- type Sty
Constants ¶
View Source
const ( F = "✘" S = "✔︎" I = "➤" L = "" /* 288-byte string literal not displayed */ )
...
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Bg ¶
type Bg int
Bg 背景色枚举 (Basic 40, Hi-Intensity 100)
type Color ¶
type Color interface {
Fg(Fg) Color // 设置前景色
Bg(Bg) Color // 设置背景色
Sty(Sty) Color // 设置样式
Text() string // 返回渲染后文本
Render() // 输出渲染后文本
}
Color ...
Click to show internal directories.
Click to hide internal directories.