debugErrorCE

package module
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 14, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CaptureOutput

func CaptureOutput(f func()) (stderr string, stdout string)

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 CondDebug

func CondDebug(msg ...string)

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.

func Debug

func Debug(msg ...string)

func Debugln

func Debugln(msg ...string)

func ErrorExit

func ErrorExit(errorCode uint8, msg ...string)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL