🌈 Adds color to your terminal output.
2 Commits
.gitignore | ||
Benchmarks_test.go | ||
Color_test.go | ||
Color.go | ||
go.mod | ||
go.sum | ||
README.md | ||
Terminal.go |
color
Adds color to your terminal output.
Features
- Truecolor output
Installation
go get git.akyoto.dev/go/color
Usage
red := color.RGB(1.0, 0.0, 0.0)
red.Println("red text")
Tests
PASS: TestColor
coverage: 100.0% of statements
Benchmarks
BenchmarkRGB-12 1000000000 0.3139 ns/op 0 B/op 0 allocs/op
BenchmarkFprint-12 25758495 45.38 ns/op 0 B/op 0 allocs/op
License
Please see the license documentation.
Copyright
© 2024 Eduard Urbach