-
Notifications
You must be signed in to change notification settings - Fork 0
/
temperature_types.go
25 lines (20 loc) · 1022 Bytes
/
temperature_types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package libwx
// TempF represents a temperature in degrees Fahrenheit.
type TempF float64
// TempC represents a temperature in degrees Celsius.
type TempC float64
func (t TempF) Unwrap() float64 { return float64(t) }
func (t TempC) Unwrap() float64 { return float64(t) }
type HeatIndexWarning int
const (
// HeatIndexWarningNone indicates the heat index does not warrant elevated caution.
HeatIndexWarningNone = iota
// HeatIndexWarningCaution indicates fatigue is possible with prolonged exposure and activity. Continuing activity could result in heat cramps.
HeatIndexWarningCaution
// HeatIndexWarningExtremeCaution indicates heat cramps and heat exhaustion are possible. Continuing activity could result in heat stroke.
HeatIndexWarningExtremeCaution
// HeatIndexWarningDanger indicates heat cramps and heat exhaustion are likely; heat stroke is probable with continued activity.
HeatIndexWarningDanger
// HeatIndexWarningExtremeDanger indicates heat stroke is imminent.
HeatIndexWarningExtremeDanger
)