changed value from string of array to string
This commit is contained in:
parent
33cca3e473
commit
0cb179f347
|
@ -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…
Reference in New Issue