Documentation
¶
Overview ¶
Package out provides a mechanism for sending localized, stylized output to the console.
Index ¶
- Variables
- func Err(format string, a ...interface{})
- func ErrLn(format string, a ...interface{})
- func ErrT(style StyleEnum, format string, a ...V)
- func FailureT(format string, a ...V)
- func FatalT(format string, a ...V)
- func Ln(format string, a ...interface{})
- func SetErrFile(w fdWriter)
- func SetOutFile(w fdWriter)
- func String(format string, a ...interface{})
- func SuccessT(format string, a ...V)
- func T(style StyleEnum, format string, a ...V)
- func WarningT(format string, a ...V)
- type StyleEnum
- type V
Constants ¶
This section is empty.
Variables ¶
View Source
var (
// OverrideEnv is the environment variable used to override color/emoji usage
OverrideEnv = "MINIKUBE_IN_STYLE"
)
Functions ¶
func ErrLn ¶
func ErrLn(format string, a ...interface{})
ErrLn writes a basic formatted string with a newline to stderr
func Ln ¶
func Ln(format string, a ...interface{})
Ln writes a basic formatted string with a newline 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 String ¶
func String(format string, a ...interface{})
String writes a basic formatted string to stdout
Types ¶
type StyleEnum ¶
type StyleEnum int
StyleEnum is an enumeration of Style
const ( Happy StyleEnum = iota SuccessType FailureType Celebration Conflict FatalType Notice Ready Running Provisioning Restarting Reconfiguring Stopping Stopped WarningType Waiting WaitingPods Usage Launch Sad ThumbsUp Option Command LogEntry Crushed URL Documentation Issues Issue Check ISODownload FileDownload Caching StartingVM StartingNone Provisioner Resetting DeletingHost Copying Connectivity Internet Mounting Celebrate ContainerRuntime Docker CRIO Containerd Permissions Enabling Shutdown Pulling Verifying VerifyingNoLine Kubectl Meh Embarrassed Tip Unmount MountOptions Fileserver Empty )
All the Style constants available
Click to show internal directories.
Click to hide internal directories.