Skip to content
Sections
>> Trisquel >> Pakiety >> nabia >> devel >> golang-github-ttacon-chalk-dev
etiona  ] [  nabia  ] [  aramo  ]
[ Pakiet źródłowy: golang-github-ttacon-chalk  ]

Pakiet: golang-github-ttacon-chalk-dev (0.1-2)

Go library for prettifying terminal/console output

Chalk is a go package for styling console/terminal output.

Check out godoc for some example usage: http://godoc.org/github.com/ttacon/chalk

The api is pretty clean, there are default Colors and TextStyles which can be mixed to create more intense Styles. Styles and Colors can be printed in normal strings (i.e. fmt.Sprintf(chalk.Red)), but Styles, Colors and TextStyles are more meant to be used to style specific text segments (i.e. fmt.Println(chalk.Red.Color("this is red")) or fmt.Println(myStyle.Style("this is blue text that is underlined"))).

This package contains the source.

Pobieranie golang-github-ttacon-chalk-dev

Pobierz dla wszystkich dostępnych architektur
Architektura Rozmiar pakietu Rozmiar po instalacji Pliki
all 38,0 KiB103 KiB [lista plików]