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.
- Host: GitHub
- URL: https://github.com/fega/go-ansi
- Owner: fega
- Created: 2019-02-17T02:38:17.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-17T03:13:39.000Z (almost 7 years ago)
- Last Synced: 2025-01-10T18:25:58.444Z (12 months ago)
- Language: Go
- Size: 527 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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"))
}
```