colorstring

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

  • Owner: mitchellh/colorstring
  • Platform:
  • License:: MIT License
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

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.

Main metrics

Overview
Name With Ownermitchellh/colorstring
Primary LanguageGo
Program languageGo (Language Count: 1)
Platform
License:MIT License
所有者活动
Created At2014-07-12 16:34:43
Pushed At2020-03-27 09:13:22
Last Commit At2019-02-13 13:29:51
Release Count0
用户参与
Stargazers Count274
Watchers Count6
Fork Count26
Commits Count25
Has Issues Enabled
Issues Count2
Issue Open Count1
Pull Requests Count3
Pull Requests Open Count4
Pull Requests Close Count1
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private