Tricky and fun ansi text utilities for Go programs. The obligatory ANSI CLI module predominantly from the Go standard library.
Developed with Go 1.15.5 darwin/amd64 (macOS Big Sur) Tested on Go 1.13+
The easiest way is to clone the repository with Go and install from there.
# add repo to $GOPATH
go get github.com/skeptycal/anansi
cd ${GOPATH}/src/github.com/skeptycal/anansi
go test -v
go install
This is a copy of the sample script available in the
samplefolder:
package main
import "github.com/skeptycal/anansi"
func main() {
anansi.Sample()
}To try it out:
# change to the sample folder
cd sample
# run the main.go program
go run ./main.go
# You should see the following output demonstrating various color combinations.Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us. Please read the Code of Conduct for details before submitting anything.
We use SemVer for versioning. For the versions available, see the tags on this repository.
- Michael Treanor (GitHub / Twitter) - Initial work, updates, maintainer
- Francesc Campoy - Inspiration and great YouTube videos!
See also the list of contributors who participated in this project.
Much of the basic types, constants, and terminal checks in 'anansi_const.go' are based on the very popular and well documented color package.
Licensed under the MIT https://opensource.org/licenses/MIT - see the LICENSE file for details.

