jsoncolor

package
v1.0.45159-pre Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package jsoncolor writes ANSI-colorized, indented JSON to an io.Writer.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Write

func Write(w io.Writer, r io.Reader, indent string) error

Write reads JSON from r and writes colorized, indented JSON to w. indent is the string used for each level of nesting (e.g. "\t" or " "). ANSI escape codes are always emitted; callers should suppress output to w when color is not desired (e.g. when w is not a TTY).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL