🎨 gookit color
Golang下的命令行色彩使用库, 拥有丰富的色彩(16/256/True)渲染输出,通用的API方法,兼容Windows系统 包含:颜色打印,颜色代码,颜色转换,颜色混合,颜色对比等等。 更多使用请看 READMEgookit/color 🎨 Golang 下的命令行色彩使用库, 拥有丰富的色彩(16/256/True)渲染输出,通用的API方法,兼容Windows系统 功能特色
cmd.exev1.2.4 起 256色(8bit),RGB色彩(24bit)均支持Windows CMD和PowerShell终端HEX HSL 等为RGB色彩Print Printf Println Sprint Sprintfthis an <green>message</> <fg=red;bg=blue>text</> 标签内部文本将会渲染对应色彩Bold Black White Gray Red Green Yellow Blue Magenta CyanInfo Note Light Error Danger Notice Success Comment Primary Warning Question SecondaryNO_COLOR 来禁用色彩,或者使用 FORCE_COLOR 来强制使用色彩渲染.