Browse Source

changed value from string of array to string

master
Lars Hoogestraat 3 months ago
parent
commit
0cb179f347
  1. 8
      parser/kml.go

8
parser/kml.go

@ -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) {

Loading…
Cancel
Save