Documentation ¶
Overview ¶
Package gxml provides accessing and converting for XML content.
Index ¶
- func Decode(content []byte) (map[string]interface{}, error)
- func DecodeWithoutRoot(content []byte) (map[string]interface{}, error)
- func Encode(m map[string]interface{}, rootTag ...string) ([]byte, error)
- func EncodeWithIndent(m map[string]interface{}, rootTag ...string) ([]byte, error)
- func ToJson(content []byte) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeWithoutRoot ¶
DecodeWithoutRoot parses <content> into a map, and returns the map without root level.
func Encode ¶
Encode encodes map <m> to a XML format content as bytes. The optional parameter <rootTag> is used to specify the XML root tag.
func EncodeWithIndent ¶
Encode encodes map <m> to a XML format content as bytes with indent. The optional parameter <rootTag> is used to specify the XML root tag.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.