Documentation
¶
Overview ¶
Package msg is a tool for handling commandline output based on flags for quiet, verbose, and debug modes. The default is to have all modes disabled.
The Qprint messages will only output messages if quiet mode is disabled The Vprint messages will only output messages if verbose mode is enabled. The Dprint messages will only output messages if debug mode is enabled.
Index ¶
- func Dprint(a ...any)
- func Dprintf(format string, a ...any)
- func Dprintln(a ...any)
- func Print(a ...any)
- func Printf(format string, a ...any)
- func Println(a ...any)
- func Qprint(a ...any)
- func Qprintf(format string, a ...any)
- func Qprintln(a ...any)
- func Reset()
- func Set(q, v, d bool)
- func SetDebug(d bool)
- func SetQuiet(q bool)
- func SetVerbose(v bool)
- func SetWriter(dst io.Writer)
- func StackTrace()
- func Vprint(a ...any)
- func Vprintf(format string, a ...any)
- func Vprintln(a ...any)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetVerbose ¶
func SetVerbose(v bool)
func StackTrace ¶
func StackTrace()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.