Registry / utility / mattn-go-colorable

mattn-go-colorable

JSON →
library0.1.15gogounverified

Package colorable provides a colorable writer for Windows consoles, enabling ANSI color support.

go get github.com/mattn/go-colorable
INSTALL
IMPORT
SIG · MATTN-GO-COLORABLE
M
mattn-go-colorable
utilitygov0.1.15
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

colorable
github.com/mattn/go-colorable

Prints colored text to stdout using ANSI escape codes on Windows.

package main import ( "fmt" "github.com/mattn/go-colorable" ) func main() { fmt.Fprintf(colorable.NewColorableStdout(), "\033[31mHello, World!\033[0m\n") }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.15latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
12
Resources
mattn-go-colorable — go get mattn-go-colorable · libregistry