Versions in this module Expand all Collapse all v1 v1.6.0 Apr 28, 2019 v1.5.1 Mar 30, 2019 v1.5.0 Jun 18, 2018 v1.4.0 Jun 10, 2018 v1.3.2 May 17, 2018 v1.3.1 May 2, 2018 v1.3.0 May 1, 2018 v1.2.1 Feb 11, 2018 v1.2.0 Aug 19, 2017 v1.1.0 Jul 23, 2017 v1.0.1 Jul 9, 2017 v1.0.0 Jul 4, 2017 Changes in this version + var MatchPattern = regexp.MustCompile(`^\.weather`) + var SlackProps = ...() + func SlackCommandFunc(ctx context.Context, input sarah.Input, config sarah.CommandConfig) (*sarah.CommandResponse, error) + type Astronomy struct + MoonRise string + MoonSet string + Sunrise string + Sunset string + type Client struct + func NewClient(config *Config) *Client + func (client *Client) Get(ctx context.Context, apiType string, queryParams *url.Values, data interface{}) error + func (client *Client) LocalWeather(ctx context.Context, location string) (*LocalWeatherResponse, error) + type CommandConfig struct + APIKey string + func NewCommandConfig() *CommandConfig + type CommonData struct + Error []*ErrorDescription + func (data *CommonData) HasError() bool + type Config struct + func NewConfig(apiKey string) *Config + type CurrentCondition struct + CloudCover int + Description []*WeatherDescription + FeelingTemperature int + Humidity int + ObservationTime string + Precipitation float32 + Pressure int + Temperature int + Visibility int + WeatherCode string + WeatherIcon []*WeatherIcon + WindDirection int + WindDirectionCardinal string + WindSpeed int + type ErrorDescription struct + Message string + type HourlyForecastTime struct + DisplayTime string + Hour int + OriginalValue string + func (t *HourlyForecastTime) UnmarshalText(b []byte) error + type HourlyWeather struct + CloudCover int + Description []*WeatherDescription + FeelingTemperature int + Humidity int + Precipitation float32 + Pressure int + Temperature int + Time HourlyForecastTime + Visibility int + WeatherCode string + WeatherIcon []*WeatherIcon + WindDirection int + WindDirectionCardinal string + WindSpeed int + type LocalWeatherResponse struct + Data *WeatherData + type Request struct + Query string + Type string + type Weather struct + Astronomy []*Astronomy + Date string + Hourly []*HourlyWeather + MaxTempC int + MaxTempF int + MinTempC int + MinTempF int + UV int + type WeatherData struct + CurrentCondition []*CurrentCondition + Request []*Request + Weather []*Weather + type WeatherDescription struct + Content string + type WeatherIcon struct + URL string