jsoncolor

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

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 colorized JSON output parsed from reader

func WriteDelims

func WriteDelims(w io.Writer, delims, indent string) error

WriteDelims writes delims in color and with the appropriate indent based on the stack size returned from an io.Writer that implements JsonWriter.Preface().

Types

type JsonWriter

type JsonWriter interface {
	Preface() []json.Delim
}

Jump to

Keyboard shortcuts

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