Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidDate is returned if an invalid date qualifier is supplied. ErrInvalidDate = errors.New("invalid date supplied") )
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is a very basic weather feed provided by Environment Canada
type Station ¶
type Station struct { URL string `json:"url"` Title string `json:"title"` Latitude float64 `json:"latitude"` Longitude float64 `json:"longitude"` SiteType string `json:"site_type"` SiteProvinceCode string `json:"site_province_code"` // contains filtered or unexported fields }
Station contains the data about a single weather location reported on by Environment Canada
func (*Station) GetForecast ¶
GetForecast returns the forecast for this station
Click to show internal directories.
Click to hide internal directories.