Documentation
¶
Overview ¶
渲染终端文本颜色背景色和显示样式
color.NewColor("text").FgColor(color.Green).Render()
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Color ¶ added in v0.0.2
type Color interface { FgColor(FgColor) Color // 设置前景色 BgColor(BgColor) Color // 设置背景色 Style(Style) Color // 设置样式 Content() string // 返回渲染后文本内容 Render() // 输出渲染后文本内容 }
Color interface
Click to show internal directories.
Click to hide internal directories.