Documentation ¶
Index ¶
Constants ¶
View Source
const ( BARO_WEATHER_UNKNOWN = iota BARO_WEATHER_SUNNY BARO_WEATHER_CLOUDY BARO_WEATHER_OVERCAST BARO_WEATHER_RAINY BARO_WEATHER_THUNDER_STORM )
Variables ¶
View Source
var ( BARO_WEATHER_SUNNY_STYLE = color.New(color.Bold, color.FgGreen) BARO_WEATHER_CLOUDY_STYLE = color.New(color.FgBlue) BARO_WEATHER_OVERCAST_STYLE = color.New(color.FgHiYellow) BARO_WEATHER_RAINY_STYLE = color.New(color.FgYellow) BARO_WEATHER_THUNDER_STORM_STYLE = color.New(color.FgRed, color.Bold) BAROMETER_TITLE = color.New(color.Bold).Sprint(("Build Barometer:")) )
Functions ¶
Types ¶
type BarometerWeather ¶
type BarometerWeather uint
func BaroByTimes ¶
func BaroByTimes(successTime int, failureTime int) BarometerWeather
func (BarometerWeather) GetTextStyle ¶
func (b BarometerWeather) GetTextStyle() *color.Color
func (BarometerWeather) Print ¶
func (b BarometerWeather) Print(name string, successTime int, failureTime int) string
func (BarometerWeather) String ¶
func (b BarometerWeather) String() string
Click to show internal directories.
Click to hide internal directories.