Categorygithub.com/soluble-ai/go-colorize
modulepackage
0.1.2
Repository: https://github.com/soluble-ai/go-colorize.git
Documentation: pkg.go.dev

# README

go-colorize

GoDoc Go Report Card

With:

$ go get github.com/soluble-ai/go-colorize

Go from this:

	Colorize("{info:[INFO]} {secondary:%s} {primary:%s}\n",
		time.Now().Format(time.RFC3339), "hello, world")

To this:

Screenshot

Default colors are:

Colors

Works with https://github.com/kyokomi/emoji and https://github.com/fatih/color.

# Functions

Colorize some text, printing the output to color.Output.
NewStyle creates a style from a set of attributes.
Colorize some text, returning a string.

# Variables

Styles maps style names to styles.

# Structs

Style is a ANSI escape code sequence.