Skip to content

Commit

Permalink
fix: 🐛 field moon_illumination
Browse files Browse the repository at this point in the history
hoangsvit committed Oct 26, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent c67bc47 commit 7f454c3
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions pkg/weatherapi_com/type.go
Original file line number Diff line number Diff line change
@@ -77,14 +77,13 @@ type ForecastDay struct {
Uv float64 `json:"uv"`
} `json:"day"`
Astro struct {
Sunrise string `json:"sunrise"`
Sunset string `json:"sunset"`
Moonrise string `json:"moonrise"`
Moonset string `json:"moonset"`
MoonPhase string `json:"moon_phase"`
MoonIllumination string `json:"moon_illumination"`
IsMoonUp int `json:"is_moon_up"`
IsSunUp int `json:"is_sun_up"`
Sunrise string `json:"sunrise"`
Sunset string `json:"sunset"`
Moonrise string `json:"moonrise"`
Moonset string `json:"moonset"`
MoonPhase string `json:"moon_phase"`
IsMoonUp int `json:"is_moon_up"`
IsSunUp int `json:"is_sun_up"`
} `json:"astro"`
Hour []ForecastHour `json:"hour"`
}
@@ -127,4 +126,4 @@ type ForecastHour struct {
GustMph float64 `json:"gust_mph"`
GustKph float64 `json:"gust_kph"`
Uv float64 `json:"uv"`
}
}

0 comments on commit 7f454c3

Please sign in to comment.