Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ahmadrosid/go-color

🌈 Format colored text in your Go application.
https://github.com/ahmadrosid/go-color

Last synced: 22 days ago
JSON representation

🌈 Format colored text in your Go application.

Awesome Lists containing this project

README

        

## Go Color

Utility to print colored text in golang.

## Usage
```go
import "github.com/ahmadrosid/go-color/color"

func main() {
println(color.Format(color.RED, "I'm red!"))
println(color.Format(color.BLUE, "I'm blue!"))
println(color.Format(color.GREEN, "I'm green!"))
println(color.Format(color.YELLOW, "I'm yellow!"))
println(color.Format(color.PURPLE, "I'm purple!"))
}
```

## Example
![Go Color](/example.png)