Documentation
¶
Index ¶
- func Bold(s string) string
- func ColorEnabled() bool
- func Dim(s string) string
- func Error(s string) string
- func Highlight(s string) string
- func Info(s string) string
- func PrecipColor(chance int) string
- func Profile() termenv.Profile
- func Success(s string) string
- func TempColor(tempC float64) string
- func Warning(s string) string
- func WindColor(speedKmh float64) string
- type Mode
- type Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrecipColor ¶
PrecipColor returns a color based on precipitation chance. Gradient: green (0%) -> yellow (25%) -> orange (50%) -> red (75%+).
Types ¶
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
Writer handles output formatting in different modes.
Click to show internal directories.
Click to hide internal directories.