Versions in this module Expand all Collapse all v1 v1.8.5 Sep 10, 2019 Changes in this version + var X2jCharsetReader func(charset string, input io.Reader) (io.Reader, error) + func ByteDocToJson(doc []byte, recast ...bool) (string, error) + func ByteDocToMap(doc []byte, recast ...bool) (map[string]interface{}, error) + func BytePathForTagShortest(doc []byte, key string) (string, error) + func BytePathsForTag(doc []byte, key string) ([]string, error) + func CastNanInf(b bool) + func DocToJson(doc string, recast ...bool) (string, error) + func DocToJsonIndent(doc string, recast ...bool) (string, error) + func DocToMap(doc string, recast ...bool) (map[string]interface{}, error) + func DocValue(doc, path string, attrs ...string) (interface{}, error) + func MapValue(m map[string]interface{}, path string, attr map[string]interface{}, r ...bool) (interface{}, error) + func NewAttributeMap(kv ...string) (map[string]interface{}, error) + func PathForKeyShortest(m map[string]interface{}, key string) string + func PathForTagShortest(doc string, key string) (string, error) + func PathsForKey(m map[string]interface{}, key string) []string + func PathsForTag(doc string, key string) ([]string, error) + func ReaderValuesForTag(rdr io.Reader, tag string) ([]interface{}, error) + func ReaderValuesFromTagPath(rdr io.Reader, path string, getAttrs ...bool) ([]interface{}, error) + func ToJson(rdr io.Reader, recast ...bool) (string, error) + func ToJsonIndent(rdr io.Reader, recast ...bool) (string, error) + func ToMap(rdr io.Reader, recast ...bool) (map[string]interface{}, error) + func Unmarshal(doc []byte, v interface{}) error + func ValuesAtKeyPath(m map[string]interface{}, path string, getAttrs ...bool) []interface + func ValuesAtTagPath(doc, path string, getAttrs ...bool) ([]interface{}, error) + func ValuesForKey(m map[string]interface{}, key string) []interface + func ValuesForTag(doc, tag string) ([]interface{}, error) + func ValuesFromKeyPath(m map[string]interface{}, path string, getAttrs ...bool) []interface + func ValuesFromTagPath(doc, path string, getAttrs ...bool) ([]interface{}, error) + func WriteMap(m interface{}, offset ...int) string + func XmlBufferToJson(b *bytes.Buffer, recast ...bool) (string, error) + func XmlBufferToMap(b *bytes.Buffer, recast ...bool) (map[string]interface{}, error) + func XmlMsgsFromFile(fname string, phandler func(map[string]interface{}) bool, ...) error + func XmlMsgsFromFileAsJson(fname string, phandler func(string) bool, ehandler func(error) bool, ...) error + func XmlMsgsFromReader(rdr io.Reader, phandler func(map[string]interface{}) bool, ...) error + func XmlMsgsFromReaderAsJson(rdr io.Reader, phandler func(string) bool, ehandler func(error) bool, ...) error