docs: Add comments
Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
This commit is contained in:
parent
0faf0f2cf5
commit
baedbeb469
1 changed files with 3 additions and 3 deletions
6
yr/yr.go
6
yr/yr.go
|
@ -66,9 +66,9 @@ func windDirection(d float64) string {
|
||||||
|
|
||||||
type NowForecast struct {
|
type NowForecast struct {
|
||||||
nominatim.LookupResult
|
nominatim.LookupResult
|
||||||
Temperature float64 `json:"temperature"`
|
Temperature float64 `json:"temperature"` // In celsius
|
||||||
Percipitation float64 `json:"percipitation"`
|
Percipitation float64 `json:"percipitation"` // In mm
|
||||||
Wind wind `json:"wind"`
|
Wind wind `json:"wind"` // In m/s
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Client) Now(q string) (*NowForecast, error) {
|
func (c *Client) Now(q string) (*NowForecast, error) {
|
||||||
|
|
Loading…
Reference in a new issue