Tint - a minimal terminal styling module

(Ashish Shekar) #1

Hello guys, for the past 2 months I have been working on a small (my first) go module called Tint and I would like to share with you guys. It helps you with styling text/output on the console.

I have written a Getting started guide on my blog.

This is an initial release with much more improvements/features to come. Please feel free to review/comment or report an issue and/or idea for this module on this github repository.

(Johan Dahl) #2

Hi. This looks nice. I read the code and saw one small improvement

var colorMap = map[color]string

Couldn’t this really be an slice instead? It would be slightly faster.

(Ashish Shekar) #3

That is a great suggestion, created an issue on the repo. Thanks for pointing it out for me.