output

package
v0.0.0-...-b629d69 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2021 License: MPL-2.0 Imports: 1 Imported by: 0

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

func BaroPrintByTimes

func BaroPrintByTimes(name string, successTime int, failureTime int) string

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

Jump to

Keyboard shortcuts

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