Documentation
¶
Index ¶
- Variables
- func Highlight(reader io.Reader, writer io.Writer) error
- func HighlightBytes(jsonString []byte, colors Colors) ([]byte, error)
- func HighlightBytesC(jsonString []byte, colors Colors) ([]byte, error)
- func HighlightC(reader io.Reader, writer io.Writer, colors Colors) error
- func HighlightString(jsonString string) (string, error)
- func HighlightStringC(jsonString string, colors Colors) (string, error)
- type Colors
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultColors = Colors{ jsont.ObjectStart: "\x1b[38;5;242m", jsont.ObjectEnd: "\x1b[38;5;242m", jsont.ArrayStart: "\x1b[38;5;242m", jsont.ArrayEnd: "\x1b[38;5;242m", jsont.Colon: "\x1b[38;5;242m", jsont.Comma: "\x1b[38;5;242m", jsont.FieldName: "\x1b[38;5;33m", jsont.True: "\x1b[38;5;22m", jsont.False: "\x1b[38;5;124m", jsont.Null: "\x1b[38;5;124m", jsont.Integer: "\x1b[38;5;117m", jsont.Float: "\x1b[38;5;117m", jsont.String: "\x1b[38;5;45m", jsont.Unknown: "\x1b[38;5;1m", }
Functions ¶
func HighlightString ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.