Documentation ¶
Overview ¶
Package console provides a mechanism for sending localized, stylized output to the console.
Index ¶
- Variables
- func DetermineLocale()
- func Err(format string, a ...interface{})
- func ErrLn(format string, a ...interface{})
- func ErrStyle(style, format string, a ...interface{})
- func Failure(format string, a ...interface{})
- func Fatal(format string, a ...interface{})
- func HasStyle(style string) bool
- func Out(format string, a ...interface{})
- func OutLn(format string, a ...interface{})
- func OutStyle(style, format string, a ...interface{})
- func SetErrFile(w fdWriter)
- func SetOutFile(w fdWriter)
- func SetPreferredLanguage(s string) error
- func SetPreferredLanguageTag(l language.Tag)
- func Success(format string, a ...interface{})
- func Warning(format string, a ...interface{})
Constants ¶
This section is empty.
Variables ¶
var (
// OverrideEnv is the environment variable used to override color/emoji usage
OverrideEnv = "MINIKUBE_IN_STYLE"
)
Functions ¶
func DetermineLocale ¶ added in v1.1.0
func DetermineLocale()
func ErrLn ¶
func ErrLn(format string, a ...interface{})
ErrLn writes a basic formatted string with a newline to stderr
func ErrStyle ¶
func ErrStyle(style, format string, a ...interface{})
ErrStyle writes a stylized and formatted error message to stderr
func Failure ¶
func Failure(format string, a ...interface{})
Failure is a shortcut for writing a styled failure message to stderr
func Fatal ¶
func Fatal(format string, a ...interface{})
Fatal is a shortcut for writing a styled fatal message to stderr
func OutLn ¶
func OutLn(format string, a ...interface{})
OutLn writes a basic formatted string with a newline to stdout
func OutStyle ¶
func OutStyle(style, format string, a ...interface{})
OutStyle writes a stylized and formatted message to stdout
func SetErrFile ¶
func SetErrFile(w fdWriter)
SetErrFile configures which writer error output goes to.
func SetOutFile ¶
func SetOutFile(w fdWriter)
SetOutFile configures which writer standard output goes to.
func SetPreferredLanguage ¶
SetPreferredLanguage configures which language future messages should use, based on a LANG string.
func SetPreferredLanguageTag ¶
SetPreferredLanguageTag configures which language future messages should use.
Types ¶
This section is empty.