Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( OperatorColor = color.New(color.FgHiWhite) NumberColor = color.New(color.FgYellow) BoolColor = color.New(color.FgMagenta, color.Bold) StringColor = color.New(color.FgGreen) NullColor = color.New(color.FgYellow, color.Bold) )
View Source
var PrettyNull = NullColor.Sprint("null")
Functions ¶
This section is empty.
Types ¶
type AnyFormatter ¶
type AnyFormatter struct {
// contains filtered or unexported fields
}
func (*AnyFormatter) Format ¶
func (f *AnyFormatter) Format(v any)
type ArrayFormatter ¶
type ArrayFormatter struct {
// contains filtered or unexported fields
}
func NewArrayFormatter ¶
func NewArrayFormatter(r *render.Renderer) *ArrayFormatter
func (*ArrayFormatter) Format ¶
func (f *ArrayFormatter) Format(v any)
type BoolFormatter ¶
type BoolFormatter struct {
// contains filtered or unexported fields
}
func (*BoolFormatter) Format ¶
func (f *BoolFormatter) Format(v any)
type DatetimeFormatter ¶
type DatetimeFormatter struct {
// contains filtered or unexported fields
}
func NewDatetimeFormatter ¶
func NewDatetimeFormatter() *DatetimeFormatter
func (*DatetimeFormatter) Format ¶
func (f *DatetimeFormatter) Format()
type EnumFormatter ¶
type EnumFormatter struct{}
type ErrorFormatter ¶
type ErrorFormatter struct {
// contains filtered or unexported fields
}
func (*ErrorFormatter) Format ¶
func (f *ErrorFormatter) Format(v any)
type NullFormatter ¶
type NullFormatter struct {
// contains filtered or unexported fields
}
func (*NullFormatter) Format ¶
func (f *NullFormatter) Format(v any)
type NumberFormatter ¶
type NumberFormatter struct {
// contains filtered or unexported fields
}
func (*NumberFormatter) Format ¶
func (f *NumberFormatter) Format(v any)
type ObjectFormatter ¶
type ObjectFormatter struct {
// contains filtered or unexported fields
}
func NewObjectFormatter ¶
func NewObjectFormatter(r *render.Renderer) *ObjectFormatter
func (*ObjectFormatter) Format ¶
func (f *ObjectFormatter) Format(v any)
type StringFormatter ¶
type StringFormatter struct {
// contains filtered or unexported fields
}
func (*StringFormatter) Format ¶
func (f *StringFormatter) Format(v any)
Click to show internal directories.
Click to hide internal directories.