Versions in this module Expand all Collapse all v2 v2.0.0 Oct 31, 2022 Changes in this version + var DisableColors = false + var EncoderColorCyan = color.New(color.FgCyan) + var EncoderColorGreen = color.New(color.FgGreen) + var EncoderColorWhite = color.New(color.FgWhite) + var EncoderColorYellow = color.New(color.FgYellow) + func Black(str string) string + func BlackBG(str string) string + func Bold(str string) string + func CC(elems ...string) string + func Colorize(str string) string + func ColorizeBG(str string) string + func HashString(s string) uint64 + func HighlightAnyCase(str, substr string, colorer func(string) string) string + func HighlightLimeBG(str, substr string) string + func HighlightRedBG(str, substr string) string + func Indigo(str string) string + func IndigoBG(str string) string + func IsLight(rr, gg, bb uint64) bool + func Lime(str string) string + func LimeBG(str string) string + func Ln(a ...interface{}) string + func Lnsf(format string, a ...interface{}) string + func LnsfI(indent int, format string, a ...interface{}) string + func Orange(str string) string + func OrangeBG(str string) string + func Purple(str string) string + func PurpleBG(str string) string + func Red(str string) string + func RedBG(str string) string + func S(a ...interface{}) string + func Sf(format string, a ...interface{}) string + func Shakespeare(str string) string + func ShakespeareBG(str string) string + func StringToColor(str string) func(string) string + func StringToColorBG(str string) func(string) string + func White(str string) string + func WhiteBG(str string) string + func Yellow(str string) string + func YellowBG(str string) string + type Blob string + func (b Blob) Data() ([]byte, error) + func (b Blob) String() string + type Bool bool + func (b Bool) TextEncode(encoder *Encoder, option *Option) error + type EncodableToTree interface + EncodeToTree func(parent treeout.Branches) + type Encoder struct + func NewEncoder(w io.Writer) *Encoder + func (e *Encoder) Encode(v interface{}, option *Option) (err error) + func (e *Encoder) ToWriter(s string, indent bool, c *color.Color) (err error) + type Float128 Uint128 + func (f Float128) TextEncode(encoder *Encoder, option *Option) error + type HexBytes []byte + func (o HexBytes) TextEncode(encoder *Encoder, option *Option) error + type Int128 Uint128 + func (i Int128) BigInt() *big.Int + func (i Int128) DecimalString() string + func (i Int128) TextEncode(encoder *Encoder, option *Option) error + type Int64 int64 + func (i Int64) TextEncode(encoder *Encoder, option *Option) error + type JSONFloat64 float64 + func (f JSONFloat64) TextEncode(encoder *Encoder, option *Option) error + type Option struct + NoTypeName bool + type SafeString string + func (ss SafeString) TextEncode(encoder *Encoder, option *Option) error + type TextEncodable interface + TextEncode func(encoder *Encoder, option *Option) error + type TreeEncoder struct + func NewTreeEncoder(w io.Writer, doc string) *TreeEncoder + func (enc *TreeEncoder) WriteString(s string) (int, error) + type Uint128 struct + Hi uint64 + Lo uint64 + func (i Uint128) BigInt() *big.Int + func (i Uint128) DecimalString() string + func (i Uint128) TextEncode(encoder *Encoder, option *Option) error + type Uint64 uint64 + func (i Uint64) TextEncode(encoder *Encoder, option *Option) error + type Varint16 int16 + func (o Varint16) TextEncode(encoder *Encoder, option *Option) error + type Varint32 int32 + func (o Varint32) TextEncode(encoder *Encoder, option *Option) error + type Varuint16 uint16 + func (o Varuint16) TextEncode(encoder *Encoder, option *Option) error + type Varuint32 uint32 + func (o Varuint32) TextEncode(encoder *Encoder, option *Option) error