21 lines
656 B
Go
21 lines
656 B
Go
package solar
|
|
|
|
import "encoding/xml"
|
|
|
|
type Data struct {
|
|
SolarFlux string `xml:"solarflux" json:"solarFlux"`
|
|
Sunspots string `xml:"sunspots" json:"sunspots"`
|
|
AIndex string `xml:"aindex" json:"aIndex"`
|
|
KIndex string `xml:"kindex" json:"kIndex"`
|
|
SolarWind string `xml:"solarwind" json:"solarWind"`
|
|
HeliumLine string `xml:"heliumline" json:"heliumLine"`
|
|
ProtonFlux string `xml:"protonflux" json:"protonFlux"`
|
|
GeomagField string `xml:"geomagfield" json:"geomagField"`
|
|
Updated string `xml:"updated" json:"updated"`
|
|
}
|
|
|
|
type XML struct {
|
|
XMLName xml.Name `xml:"solar"`
|
|
Data Data `xml:"solardata"`
|
|
}
|