1. 首页
  2. 开源项目

Color Go 的颜色包 Color

polaris • 2929 次点击
这是一个分享于 的项目,其中的信息可能已经有所发展或是发生改变。
Color 是用 Go 语言编写的 ANSI Escape Codes 术语,你可以自定义屏幕的输出颜色。 ![Color](https://camo.githubusercontent.com/3cef9169d42dd94bd7299782d691396027d688a4/687474703a2f2f692e696d6775722e636f6d2f63314a49306c412e706e67) 标准颜色: <pre class="brush:js;toolbar: true; auto-links: false;">// Print with default helper functions color.Cyan(&#34;Prints text in cyan.&#34;) // A newline will be appended automatically color.Blue(&#34;Prints %s in blue.&#34;, &#34;text&#34;) // These are using the default foreground colors color.Red(&#34;We have red&#34;) color.Magenta(&#34;And many others ..&#34;)</pre>
授权协议:
MIT
开发语言:
Google Go 查看源码»
操作系统:
跨平台
2929 次点击 ∙ 1 赞
暂无回复
添加一条新回复 (您需要 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传

用户登录

没有账号?注册
(追記) (追記ここまで)

今日阅读排行

    加载中

一周阅读排行

    加载中