Documentation
¶
Overview ¶
Package color provides ANSI color utilities and JSON syntax highlighting for terminal error output.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( Red = red Blue = blue Cyan = cyan Gray = gray Green = green Yellow = yellow Reset = reset )
Functions ¶
func ColorizeJSON ¶
ColorizeJSON applies syntax highlighting to a JSON string. Keys are blue, string values are green, numbers are yellow, booleans/null are magenta, structural characters are gray.
func ColorizeKeyValueBlock ¶
ColorizeKeyValueBlock colorizes a block of key: value lines. Keys are cyan, colons and spacing are gray, string values are green, numeric values are yellow.
Types ¶
This section is empty.