Tint: Terminal styling module for Go

61 views
Skip to first unread message

ckrac...@gmail.com

unread,
Jun 9, 2019, 2:25:36 PM6/9/19
to golang-nuts
Hi, I would like to share with guys a module that I have been developing for the past few months. Its called tint (v0.0.1). It helps you style your terminal output efficiently.

Here are some links that can get you started with this module:

This release also has a new feature called Tint Color Expressions which will help you color strings with some prefixes and suffixes.

A small demo:

package main

import (
   
"fmt"
   
"github.com/printzero/tint"
)

func main() {
    t
:= tint.Init()
    fmt
.Println(t.Exp(
"I want to print, r|THIS|!"))
}


will give you an output like this:



I would love to have some feedback on this module and your suggestions on any part of the code that can improve this module.

Thanks for reading through.
Reply all
Reply to author
Forward
0 new messages