Documentation
¶
Index ¶
- func FileXmlToJson(file string) ([]byte, error)
- func JsonToXml(input []byte) ([]byte, error)
- func XmlToJson(input []byte) ([]byte, error)
- func ZipXmlToJson(input []byte) ([]byte, error)
- type SortedPair
- type UnsortedMap
- func (uMap *UnsortedMap) Get(key string) (val interface{}, exists bool)
- func (uMap *UnsortedMap) Keys() []string
- func (uMap UnsortedMap) MarshalJSON() ([]byte, error)
- func (uMap *UnsortedMap) Remove(key string)
- func (uMap *UnsortedMap) Set(key string, value interface{})
- func (uMap *UnsortedMap) SortKeys(sortFunc func(keys []string))
- func (uMap *UnsortedMap) SortPairs(lessFunc func(a *UnsortedPair, b *UnsortedPair) bool)
- func (uMap *UnsortedMap) ToXml() ([]byte, error)
- func (uMap *UnsortedMap) UnmarshalJSON(b []byte) error
- func (uMap *UnsortedMap) XmlAttributes() []byte
- type UnsortedPair
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileXmlToJson ¶
FileXmlToJson covert xml file to json. Output []byte and error.
func ZipXmlToJson ¶ added in v1.0.7
ZipXmlToJson covert xmt to json. Input gzip []byte. Output []byte and error.
Types ¶
type SortedPair ¶ added in v1.0.4
type SortedPair struct { Pairs []*UnsortedPair LessFunc func(a *UnsortedPair, j *UnsortedPair) bool }
type UnsortedMap ¶ added in v1.0.4
type UnsortedMap struct {
// contains filtered or unexported fields
}
func (*UnsortedMap) Get ¶ added in v1.0.4
func (uMap *UnsortedMap) Get(key string) (val interface{}, exists bool)
Get value UnsortedMap.
func (*UnsortedMap) Keys ¶ added in v1.0.4
func (uMap *UnsortedMap) Keys() []string
Keys UnsortedMap.
func (UnsortedMap) MarshalJSON ¶ added in v1.0.4
func (uMap UnsortedMap) MarshalJSON() ([]byte, error)
MarshalJSON UnsortedMap.
func (*UnsortedMap) Remove ¶ added in v1.0.4
func (uMap *UnsortedMap) Remove(key string)
Remove value UnsortedMap.
func (*UnsortedMap) Set ¶ added in v1.0.4
func (uMap *UnsortedMap) Set(key string, value interface{})
Set value UnsortedMap.
func (*UnsortedMap) SortKeys ¶ added in v1.0.4
func (uMap *UnsortedMap) SortKeys(sortFunc func(keys []string))
SortKeys map keys using your sort func
func (*UnsortedMap) SortPairs ¶ added in v1.0.4
func (uMap *UnsortedMap) SortPairs(lessFunc func(a *UnsortedPair, b *UnsortedPair) bool)
SortPairs using your sort func
func (*UnsortedMap) ToXml ¶ added in v1.0.4
func (uMap *UnsortedMap) ToXml() ([]byte, error)
ToXml convert UnsortedMap to xml.
func (*UnsortedMap) UnmarshalJSON ¶ added in v1.0.4
func (uMap *UnsortedMap) UnmarshalJSON(b []byte) error
UnmarshalJSON UnsortedMap.
func (*UnsortedMap) XmlAttributes ¶ added in v1.0.4
func (uMap *UnsortedMap) XmlAttributes() []byte
XmlAttributes UnsortedMap.
type UnsortedPair ¶ added in v1.0.4
type UnsortedPair struct {
// contains filtered or unexported fields
}
func (*UnsortedPair) Value ¶ added in v1.0.4
func (kv *UnsortedPair) Value() interface{}
Value UnsortedPair.
Click to show internal directories.
Click to hide internal directories.