This package browser is in early development. Mind the rough edges.

go-github-com-gookit-color

Terminal color rendering library

This package provides a command-line color library with 16/256/True color support, universal API methods and Windows support.

Features:

  • supports rich color output: 16-color (4-bit), 256-color (8-bit), true color (24-bit, RGB)

  • support converts HEX HSL value to RGB color

  • generic API methods: Print, Printf, Println, Sprint, Sprintf

  • supports HTML tag-style color rendering, such as <green>message</> <fg=red;bg=blue>text</>

  • basic colors: Bold, Black, White, Gray, Red, Green, Yellow, Blue, Magenta, Cyan

  • additional styles: Info, Note, Light, Error, Danger, Notice, Success, Comment, Primary, Warning, Question, Secondary

  • support by set NO_COLOR for disable color or use FORCE_COLOR for force open color render

  • support RGB, 256, 16 color conversion

Installation

Install the latest version of go-github-com-gookit-color as follows:

guix install go-github-com-gookit-color

Or install a particular version:

guix install go-github-com-gookit-color@1.5.4

You can also install packages in augmented, pure or containerized environments for development or simply to try them out without polluting your user profile. See the guix shell documentation for more information.

Badge code

HTML: <a href='http://127.0.0.1:3000/packages/go-github-com-gookit-color/'><img src='http://127.0.0.1:3000/packages/go-github-com-gookit-color/badges/latest-version.svg'></img></a>
Markdown: [![GNU Guix](http://127.0.0.1:3000/packages/go-github-com-gookit-color/badges/latest-version.svg)](http://127.0.0.1:3000/packages/go-github-com-gookit-color/)
Org: [[http://127.0.0.1:3000/packages/go-github-com-gookit-color/][http://127.0.0.1:3000/packages/go-github-com-gookit-color/badges/latest-version.svg]]