Libraries
gorainbow
A Go package that prints rainbow-gradient strings to the terminal — tiny, dependency-free.
- go
- terminal
- ansi
- colors
gorainbow
gorainbow is a small Go package that takes a string and returns it wrapped in ANSI escape codes that paint a rainbow gradient across each character, ready to print to the terminal. No external dependencies, one public function.
I wrote it while picking up Go. I wanted a real small project — something around 100 lines, finishable in an afternoon, but useful — to learn how packages get published in the Go ecosystem. The fact that it ended up usable inside real CLIs was a bonus.
For installation and usage, see the README on GitHub.