ColorGo 的颜色包

联合创作 · 2023-09-28

Color 是用 Go 语言编写的 ANSI Escape Codes 术语,你可以自定义屏幕的输出颜色。

 

标准颜色:

// Print with default helper functions
color.Cyan("Prints text in cyan.")
// A newline will be appended automatically
color.Blue("Prints %s in blue.", "text")
// These are using the default foreground colors
color.Red("We have red")
color.Magenta("And many others ..")
浏览 6
点赞
评论
收藏
分享

手机扫一扫分享

编辑
举报
评论
图片
表情
推荐
点赞
评论
收藏
分享

手机扫一扫分享

编辑
举报