Documentation
¶
Overview ¶
Package testobject 用于测试 mimetype 的对象
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TextObject ¶
TextObject 本质是实现了 encoding.TextMarshaler 和 encoding.TextUnmarshaler 接口的实例。
可用于 mimetype 包中的 MarshalFunc 和 UnmarshalFunc 的测试。
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.