Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidType = errors.New("invalid type") ErrOutOfData = errors.New("out of data") )
Functions ¶
func BinaryRead ¶
func BinarySize ¶
func BinarySize(obj interface{}) int
func BinaryWrite ¶
func CompactTextString ¶
func CompactTextString(obj interface{}) string
func MarshalTextString ¶
func MarshalTextString(obj interface{}) string
Types ¶
type TextMarshaler ¶
type TextMarshaler struct { Compact bool // use compact text format (one line). IgnoreDefault bool // Do not output value when value equals its default value OriginalString bool // Do not output string as byte }
TextMarshaler is a configurable text format marshaler.
func (*TextMarshaler) Marshal ¶
func (self *TextMarshaler) Marshal(w io.Writer, obj interface{}) error
func (*TextMarshaler) Text ¶
func (self *TextMarshaler) Text(obj interface{}) string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.