Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetEnableColor ¶ added in v0.2.0
func SetEnableColor(enable bool)
func SetForceColor ¶ added in v0.2.0
func SetForceColor(force bool)
Types ¶
type Options ¶
type Options struct {
MaxDepth uint
MaxArray int
MaxPropertyBreakLine int
ShowStructMethod bool
ColorMap ColorMap
Color func(s string, start string, end string) string
}
var Default Options = Options{ MaxDepth: 3, MaxArray: 25, MaxPropertyBreakLine: 10, ShowStructMethod: true, ColorMap: ColorMap{ Int: [2]string{"34", "39"}, Float: [2]string{"36", "39"}, Complex: [2]string{"35", "39"}, String: [2]string{"32", "39"}, Bool: [2]string{"33", "39"}, Ptr: [2]string{"33", "39"}, Property: [2]string{"90", "39"}, Func: [2]string{"3;36", "39;23"}, Chan: [2]string{"31", "39"}, Nil: [2]string{"93", "39"}, Tip: [2]string{"2", "22"}, }, Color: Color, }
Click to show internal directories.
Click to hide internal directories.
