Reformat ConditionMap for better readability
Refactor the ConditionMap by aligning the values, which improves code readability and adheres to the code style guidelines.
This commit is contained in:
parent
4318599eb0
commit
c1e054d9a3
20
condition.go
20
condition.go
|
@ -53,11 +53,21 @@ const (
|
||||||
// ConditionMap is a map to associate a specific ConditionType to a nicely
|
// ConditionMap is a map to associate a specific ConditionType to a nicely
|
||||||
// formatted, human readable string
|
// formatted, human readable string
|
||||||
var ConditionMap = map[ConditionType]string{
|
var ConditionMap = map[ConditionType]string{
|
||||||
CondCloudy: "Cloudy", CondFog: "Fog", CondFreezingRain: "Freezing rain",
|
CondCloudy: "Cloudy",
|
||||||
CondOvercast: "Overcast", CondPartlyCloudy: "Partly cloudy", CondRain: "Rain",
|
CondFog: "Fog",
|
||||||
CondRainHeavy: "Heavy rain", CondShowers: "Showers", CondShowersHeavy: "Heavy showers",
|
CondFreezingRain: "Freezing rain",
|
||||||
CondSnow: "Snow", CondSnowHeavy: "Heavy snow", CondSnowRain: "Sleet",
|
CondOvercast: "Overcast",
|
||||||
CondSunshine: "Clear sky", CondThunderStorm: "Thunderstorm", CondUnknown: "Unknown",
|
CondPartlyCloudy: "Partly cloudy",
|
||||||
|
CondRain: "Rain",
|
||||||
|
CondRainHeavy: "Heavy rain",
|
||||||
|
CondShowers: "Showers",
|
||||||
|
CondShowersHeavy: "Heavy showers",
|
||||||
|
CondSnow: "Snow",
|
||||||
|
CondSnowHeavy: "Heavy snow",
|
||||||
|
CondSnowRain: "Sleet",
|
||||||
|
CondSunshine: "Clear sky",
|
||||||
|
CondThunderStorm: "Thunderstorm",
|
||||||
|
CondUnknown: "Unknown",
|
||||||
}
|
}
|
||||||
|
|
||||||
// Condition is a type wrapper of an WeatherData for holding
|
// Condition is a type wrapper of an WeatherData for holding
|
||||||
|
|
Loading…
Reference in a new issue