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?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?