Documentation ¶
Index ¶
- Variables
- type Item
- func (x *Item) Attrs() map[string]string
- func (x *Item) Bytes() []byte
- func (x *Item) Children() map[string]*Item
- func (x *Item) GetAttr(a string, defaultValue ...string) (string, bool)
- func (x *Item) GetChild(n1 string, names ...string) (c *Item, exist bool)
- func (self *Item) Marshal(opt ...Option) (string, error)
- func (self *Item) MarshalBytes(opt ...Option) ([]byte, error)
- func (self *Item) MarshalString(opt ...Option) (string, error)
- func (x *Item) Name() string
- func (x *Item) SetAttr(n, v string)
- func (x *Item) SetChild(child *Item, n1 string, names ...string) *Item
- func (x *Item) SetChildBytes(b []byte, n1 string, names ...string) *Item
- func (x *Item) SetChildString(s string, n1 string, names ...string) *Item
- func (x *Item) SetData(b []byte)
- func (x *Item) SetEmptyChild(n1 string, names ...string) *Item
- func (x *Item) SetString(s string)
- func (x *Item) String() string
- type Option
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ParaError = errors.New("parameter invalid") FormatError = errors.New("format error") )
Functions ¶
This section is empty.
Types ¶
type Item ¶
type Item struct {
// contains filtered or unexported fields
}
func NewFromBytes ¶
func NewFromString ¶
func (*Item) SetChildBytes ¶
func (*Item) SetChildString ¶
Click to show internal directories.
Click to hide internal directories.