Documentation ¶
Index ¶
- Variables
- func Dump(data []byte) string
- func TryDump(data []byte) (string, error)
- func TryDumpEx(data []byte, r Renderer) (string, error)
- type Charset
- type Chunk
- type ChunkType
- type ConsoleRenderer
- func (r *ConsoleRenderer) ID(s string) string
- func (r *ConsoleRenderer) IDTYPE(s string) string
- func (r *ConsoleRenderer) INDENT() string
- func (r *ConsoleRenderer) NEWLINE() string
- func (r *ConsoleRenderer) NUM(s string) string
- func (r *ConsoleRenderer) STR(s string) string
- func (r *ConsoleRenderer) TYPE(s string) string
- type Fixed32
- type Fixed64
- type GBK
- type HtmlRenderer
- func (r *HtmlRenderer) ID(s string) string
- func (r *HtmlRenderer) IDTYPE(s string) string
- func (r *HtmlRenderer) INDENT() string
- func (r *HtmlRenderer) NEWLINE() string
- func (r *HtmlRenderer) NUM(s string) string
- func (r *HtmlRenderer) STR(s string) string
- func (r *HtmlRenderer) TYPE(s string) string
- type IdType
- type Renderer
- type Struct
- type Utf8
- type Varint
Constants ¶
This section is empty.
Variables ¶
View Source
var List []Charset = []Charset{ &Utf8{}, }
Used to detect string encoding, utf8 by default Customize this array to decode other charset, eg: &GBK{} Custom charset causes too much miss-decoding, normal binary rendered as GBK, so disabled by default.
Functions ¶
Types ¶
type ChunkType ¶
type ChunkType int
const ( CT_Varint ChunkType = iota CT_Fixed64 CT_Struct CT_Deprecated_3 CT_Deprecated_4 CT_Fixed32 )
https://developers.google.com/protocol-buffers/docs/encoding
type ConsoleRenderer ¶
type ConsoleRenderer struct { }
--------------- Console ---------------
func (*ConsoleRenderer) ID ¶
func (r *ConsoleRenderer) ID(s string) string
func (*ConsoleRenderer) IDTYPE ¶
func (r *ConsoleRenderer) IDTYPE(s string) string
func (*ConsoleRenderer) INDENT ¶
func (r *ConsoleRenderer) INDENT() string
func (*ConsoleRenderer) NEWLINE ¶
func (r *ConsoleRenderer) NEWLINE() string
func (*ConsoleRenderer) NUM ¶
func (r *ConsoleRenderer) NUM(s string) string
func (*ConsoleRenderer) STR ¶
func (r *ConsoleRenderer) STR(s string) string
func (*ConsoleRenderer) TYPE ¶
func (r *ConsoleRenderer) TYPE(s string) string
type Fixed32 ¶
type Fixed32 struct { IdType // contains filtered or unexported fields }
---- fixed32 ----
type HtmlRenderer ¶
type HtmlRenderer struct { }
func (*HtmlRenderer) ID ¶
func (r *HtmlRenderer) ID(s string) string
func (*HtmlRenderer) IDTYPE ¶
func (r *HtmlRenderer) IDTYPE(s string) string
func (*HtmlRenderer) INDENT ¶
func (r *HtmlRenderer) INDENT() string
func (*HtmlRenderer) NEWLINE ¶
func (r *HtmlRenderer) NEWLINE() string
func (*HtmlRenderer) NUM ¶
func (r *HtmlRenderer) NUM(s string) string
func (*HtmlRenderer) STR ¶
func (r *HtmlRenderer) STR(s string) string
func (*HtmlRenderer) TYPE ¶
func (r *HtmlRenderer) TYPE(s string) string
type Struct ¶
type Struct struct { IdType DataLen int Str []byte // is string, not struct Children []Chunk // is struct, not string }
---- struct ----
Click to show internal directories.
Click to hide internal directories.