代码拉取完成,页面将自动刷新
package glog
type brush func(string) string
func newBrush(color string) brush {
pre := "\033["
reset := "\033[0m"
return func(text string) string {
return pre + color + "m" + text + reset
}
}
// 字体颜色:30:黑 31:红 32:绿 33:黄 34:蓝色 35:紫色 36:深绿 37:白色
// 背景:40:黑 41:深红 42:绿 43:黄色 44:蓝色 45:紫色 46:深绿 47:白色
var colors = []brush{
newBrush("1;37"), // Debug 白色
newBrush("1;37"), // Debug 白色
newBrush("1;36"), // Info 天蓝色
newBrush("1;33"), // Warn 黄色
newBrush("1;31"), // Error 红色
newBrush("1;41"), // Fatal 红色底
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。