changed value from string of array to string

This commit is contained in:
Lars Hoogestraat 2021-06-16 11:39:27 +02:00
parent 33cca3e473
commit 0cb179f347
1 changed files with 4 additions and 4 deletions

View File

@ -44,8 +44,8 @@ type Placemark struct {
}
type Forecast struct {
Name string `xml:"elementName,attr"`
Value []string `xml:"value"`
Name string `xml:"elementName,attr"`
Value string `xml:"value"`
}
type Point struct {
@ -53,7 +53,7 @@ type Point struct {
}
func ParseKML(file *os.File) (*KML, error) {
var kml KML
var kml *KML
decoder := xml.NewDecoder(file)
decoder.CharsetReader = makeCharsetReader
@ -62,7 +62,7 @@ func ParseKML(file *os.File) (*KML, error) {
return nil, err
}
return nil, nil
return kml, nil
}
func makeCharsetReader(charset string, input io.Reader) (io.Reader, error) {