Documentation
¶
Index ¶
- func CaptureOutput(f func()) (stderr string, stdout string)
- func CondDebug(msg ...string)
- func CondDebugSet(val bool)
- func CondDebugStatus() bool
- func CondDebugln(msg ...string)
- func CurrentFunctionName() string
- func Debug(msg ...string)
- func Debugln(msg ...string)
- func ErrorExit(errorCode uint8, msg ...string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CaptureOutput ¶
CaptureOutput get a function as its argument. It executes the function and returns the output (stderr and stdout) created by this function. While capturing this output, this output is not written to default stdout or stderr.
func CondDebugSet ¶
func CondDebugSet(val bool)
CondDebugSet(val bool) allows us to turn debug on/off.
func CondDebugStatus ¶
func CondDebugStatus() bool
CondDebugStatus() allows to check if debug is turned on/off.
func CondDebugln ¶
func CondDebugln(msg ...string)
CondDebug() is the implementation of a global debug function. If it was turned on using CondDebugSet(true), then the string is shown to stderr. Else, no output is created.
func CurrentFunctionName ¶
func CurrentFunctionName() string
CurrentFunctionName() returns the name of the current function being executed.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.