Documentation ¶
Index ¶
- Variables
- 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
- type Bool
- type EncodableToTree
- type Encoder
- type Float128
- type HexBytes
- type Int128
- type Int64
- type JSONFloat64
- type Option
- type SafeString
- type TextEncodable
- type TreeEncoder
- type Uint128
- type Uint64
- type Varint16
- type Varint32
- type Varuint16
- type Varuint32
Constants ¶
This section is empty.
Variables ¶
View Source
var DisableColors = false
View Source
var EncoderColorCyan = color.New(color.FgCyan)
View Source
var EncoderColorGreen = color.New(color.FgGreen)
View Source
var EncoderColorWhite = color.New(color.FgWhite)
View Source
var EncoderColorYellow = color.New(color.FgYellow)
Functions ¶
func ColorizeBG ¶
func HashString ¶
func HighlightAnyCase ¶
func HighlightLimeBG ¶
func HighlightRedBG ¶
func ShakespeareBG ¶
func StringToColor ¶
func StringToColorBG ¶
Types ¶
type Blob ¶
type Blob string
Blob is base64 encoded data https://github.com/EOSIO/fc/blob/0e74738e938c2fe0f36c5238dbc549665ddaef82/include/fc/variant.hpp#L47
type EncodableToTree ¶
type JSONFloat64 ¶
type JSONFloat64 float64
func (JSONFloat64) TextEncode ¶
func (f JSONFloat64) TextEncode(encoder *Encoder, option *Option) error
type SafeString ¶
type SafeString string
func (SafeString) TextEncode ¶
func (ss SafeString) TextEncode(encoder *Encoder, option *Option) error
type TextEncodable ¶
type TreeEncoder ¶
func NewTreeEncoder ¶
func NewTreeEncoder(w io.Writer, doc string) *TreeEncoder
func (*TreeEncoder) WriteString ¶
func (enc *TreeEncoder) WriteString(s string) (int, error)
Click to show internal directories.
Click to hide internal directories.