terraform-provider-google/vendor/github.com/mitchellh/colorstring
Riley Karson dbf9188792
Vendor 0.12 SDK (#3432)
```bash
GO111MODULE=on go get github.com/hashicorp/terraform@pluginsdk-v0.12-early7
GO111MODULE=on go mod vendor
GO111MODULE=on go mod tidy
```
2019-04-15 13:39:47 -07:00
..
.travis.yml Vendor 0.12 SDK (#3432) 2019-04-15 13:39:47 -07:00
colorstring.go Vendor 0.12 SDK (#3432) 2019-04-15 13:39:47 -07:00
go.mod Vendor 0.12 SDK (#3432) 2019-04-15 13:39:47 -07:00
LICENSE Vendor 0.12 SDK (#3432) 2019-04-15 13:39:47 -07:00
README.md Vendor 0.12 SDK (#3432) 2019-04-15 13:39:47 -07:00

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.