weather

package
v0.0.0-...-b5715e7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BARCELONA = "6356055"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Response

type Response struct {
	Coord      map[string]float64       `json:"coord"`
	Conditions []map[string]interface{} `json:"weather"`
	Main       map[string]float64       `json:"main"`
	City       string                   `json:"name"`
}

type Weather

type Weather struct {
	// contains filtered or unexported fields
}

func NewWeather

func NewWeather(s *sammy.Sammy) *Weather

func (*Weather) Description

func (w *Weather) Description() string

func (*Weather) Evaluate

func (w *Weather) Evaluate(msg *tgbotapi.Message) (bool, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL