Versions in this module Expand all Collapse all v0 v0.2.7 Aug 24, 2021 Changes in this version + const Blue + const FgBlack + const FgBlue + const FgCyan + const FgGreen + const FgMagenta + const FgRed + const FgWhite + const FgYellow + const Purple + var NoColor = ... + type BodyType int + const JSONType + const TxtType + const XMLType + const YAMLType + type Color struct + func New(openColor bool, c ...attr) *Color + func (c *Color) Sblue(a ...interface{}) string + func (c *Color) Sbluef(format string, a ...interface{}) string + func (c *Color) Spurple(a ...interface{}) string + func (c *Color) Spurplef(format string, a ...interface{}) string + type Formatter struct + BoolColor *Color + DisabledColor bool + Indent int + KeyColor *Color + NullColor *Color + NumberColor *Color + RawStrings bool + StringColor *Color + StringMaxLength int + func NewFormatEncoder(r io.Reader, openColor bool, bodyType BodyType) *Formatter + func (f *Formatter) Marshal(jsonObj interface{}) ([]byte, error) + func (f *Formatter) Read(p []byte) (n int, err error)