Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidDocument invalid document err ErrInvalidDocument = errors.New("xmlx: invalid document") // ErrInvalidRoot data at the root level is invalid err ErrInvalidRoot = errors.New("xmlx: data at the root level is invalid") )
Functions ¶
func DecodeBytes ¶
DecodeBytes xml bytes to map[string]any
Types ¶
type MapDecoder ¶
type MapDecoder struct {
// contains filtered or unexported fields
}
MapDecoder a xml decoder for map[string]any
func NewMapDecoder ¶
func NewMapDecoder(attrPrefix, textKey string) *MapDecoder
NewMapDecoder create new decoder instance with custom attribute prefix and text key
Click to show internal directories.
Click to hide internal directories.