first commit
This commit is contained in:
20
internal/solar/solar.go
Normal file
20
internal/solar/solar.go
Normal file
@@ -0,0 +1,20 @@
|
||||
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"`
|
||||
}
|
||||
Reference in New Issue
Block a user