Golang下的命令行色彩使用库
功能特色
- 使用简单方便
- 支持丰富的颜色输出, 16色(4bit),256色(8bit),RGB色彩(24bit)
- 16色(4bit)是最常用和支持最广的,支持Windows
cmd.exe
- 另外两种支持
linux
mac
和 Windows下的CONEMU
git-bash
mintty
等部分终端
- 16色(4bit)是最常用和支持最广的,支持Windows
- 通用的API方法:
Print
Printf
Println
Sprint
Sprintf
- 同时支持html标签式的颜色渲染. eg:
message - 基础色彩:
Bold
Black
White
Gray
Red
Green
Yellow
Blue
Magenta
Cyan
- 扩展风格:
Info
Note
Light
Error
Danger
Notice
Success
Comment
Primary
Warning
Question
Secondary
- 兼容Windows系统环境
- 授权协议:
- MIT
- 开发语言:
- golang 查看源码»
- 操作系统:
- linux,mac,windows