skiinfo

package
v0.0.0-...-624f43b Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListResorts

func ListResorts(country string) (map[string]*Resort, error)

func MakeResortName

func MakeResortName(name string) string

Types

type Resort

type Resort struct {
	Name      string
	URL       string
	Region    string
	RegionURL string
}

type ResortDescription

type ResortDescription struct {
	Status         string
	Piste          *SnowDepth
	OffPiste       *SnowDepth
	SummmitWeather *Weather
	BaseWeather    *Weather
	SnowFallDays   []*SnowFall
	Slopes         *Slopes
}

func GetResort

func GetResort(name string, region string) (*ResortDescription, error)

type Slopes

type Slopes struct {
	Beginning    bytes.Buffer
	Intermediate bytes.Buffer
	Advanced     bytes.Buffer
	Expert       bytes.Buffer
}

type SnowDepth

type SnowDepth struct {
	Upper  string
	Middle string
	Lower  string
}

type SnowFall

type SnowFall struct {
	Day  string
	Date string
	Snow string
}

type Weather

type Weather struct {
	Type          string
	Temperature   string
	WindDirection string
	WindForce     string
}

Jump to

Keyboard shortcuts

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