Documentation ¶
Index ¶
Constants ¶
View Source
const ( FgBlack attr = iota + 30 FgRed FgGreen FgYellow FgBlue FgMagenta FgCyan FgWhite )
View Source
const ( Purple = 35 Blue = 34 )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Formatter ¶
type Formatter struct { KeyColor *Color // 设置key的颜色 StringColor *Color // 设置string的颜色 BoolColor *Color // 设置bool的颜色 NumberColor *Color // 设置数字的颜色 NullColor *Color // 设置null的颜色 StringMaxLength int Indent int DisabledColor bool RawStrings bool // contains filtered or unexported fields }
func NewFormatEncoder ¶
Click to show internal directories.
Click to hide internal directories.