colorstring

Go (golang) library for colorizing strings for terminal output.

  • 所有者: mitchellh/colorstring
  • 平台:
  • 许可证: MIT License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

colorstring Build Status

colorstring is a Go library for outputting colored
strings to a console using a simple inline syntax in your string to specify
the color to print as.

For example, the string [blue]hello [red]world would output the text
"hello world" in two colors. The API of colorstring allows for easily disabling
colors, adding aliases, etc.

Installation

Standard go get:

$ go get github.com/mitchellh/colorstring

Usage & Example

For usage and examples see the Godoc.

Usage is easy enough:

colorstring.Println("[blue]Hello [red]World!")

Additionally, the Colorize struct can be used to set options such as
custom colors, color disabling, etc.

主要指标

概览
名称与所有者mitchellh/colorstring
主编程语言Go
编程语言Go (语言数: 1)
平台
许可证MIT License
所有者活动
创建于2014-07-12 16:34:43
推送于2020-03-27 09:13:22
最后一次提交2019-02-13 13:29:51
发布数0
用户参与
星数274
关注者数6
派生数26
提交数25
已启用问题?
问题数2
打开的问题数1
拉请求数3
打开的拉请求数4
关闭的拉请求数1
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?