mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-09-17 00:29:57 +00:00
dbf9188792
```bash GO111MODULE=on go get github.com/hashicorp/terraform@pluginsdk-v0.12-early7 GO111MODULE=on go mod vendor GO111MODULE=on go mod tidy ```
31 lines
873 B
Markdown
31 lines
873 B
Markdown
# colorstring [![Build Status](https://travis-ci.org/mitchellh/colorstring.svg)](https://travis-ci.org/mitchellh/colorstring)
|
|
|
|
colorstring is a [Go](http://www.golang.org) 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](http://godoc.org/github.com/mitchellh/colorstring).
|
|
|
|
Usage is easy enough:
|
|
|
|
```go
|
|
colorstring.Println("[blue]Hello [red]World!")
|
|
```
|
|
|
|
Additionally, the `Colorize` struct can be used to set options such as
|
|
custom colors, color disabling, etc.
|