Closed emicklei closed 9 years ago
func ScanProperties(content string) (map[string]string, error) { result := map[string]string{} props, err := properties.Load([]byte(content), properties.ISO_8859_1) if err != nil { return result, err } for _, each := range props.Keys() { result[each], _ = props.Get(each) } return result, nil }
the result contains an empty string as key. I did not expect this.
Correct. Fixed in v1.4.1
the result contains an empty string as key. I did not expect this.