snowforecast

package
v0.0.0-...-3d1b5a8 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiClient

type ApiClient struct{}

func (ApiClient) GetForecastBySearchWord

func (sc ApiClient) GetForecastBySearchWord(searchWord string) (*Forecast, error)

以下の3パターンの予報が取得できる 1.本日の朝からの予報が見れる時 2.本日の昼からの予報が見れる時 3.本日の夜からの予報が見れる時

type Forecast

type Forecast struct {
	Snows     []Snow
	Rains     []Rain
	SkiResort string
}

func NewForecast

func NewForecast(snows []Snow, rains []Rain, skiResort string) *Forecast

type IApiClient

type IApiClient interface {
	GetForecastBySearchWord(string) (*Forecast, error)
}

func NewApiClient

func NewApiClient() IApiClient

type Rain

type Rain struct {
	Morning int
	Noon    int
	Night   int
}

func NewRain

func NewRain(morning, noon, night int) Rain

type Snow

type Snow struct {
	Morning int
	Noon    int
	Night   int
}

func NewSnow

func NewSnow(morning, noon, night int) Snow

Jump to

Keyboard shortcuts

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