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

https://github.com/fega/go-ansi

get colorized strings for your logs.
https://github.com/fega/go-ansi

Last synced: 11 months ago
JSON representation

get colorized strings for your logs.

Awesome Lists containing this project

README

          

# ansi

Ansi package, get bash colorized strings

## Usage

```go
package main

import (
"log"

ansi "github.com/fega/go-ansi"
)

func main() {
log.Print(ansi.Cyan("Cyan string"))
log.Print(ansi.Yellow("Yellow"))
log.Print(ansi.Black("Black"))
log.Print(ansi.Blue("Blue"))
log.Print(ansi.Purple("Purple"))
log.Print(ansi.Red("Red"))
log.Print(ansi.Green("Green"))
log.Print(ansi.White("White"))
}
```