Documentation ¶
Overview ¶
Package testobject 用于 text 测试对象
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TextObject ¶
TextObject 本质是实现了 encoding.TextMarshaler 和 encoding.TextUnmarshaler 接口的实例
func (*TextObject) MarshalText ¶
func (o *TextObject) MarshalText() ([]byte, error)
MarshalText 实现 encoding.TextMarshaler 接口
func (*TextObject) UnmarshalText ¶
func (o *TextObject) UnmarshalText(data []byte) error
UnmarshalText 实现 encoding.TextUnmarshaler 接口
Click to show internal directories.
Click to hide internal directories.