Documentation ¶
Index ¶
- func CAUTION(fstr string, a ...interface{})
- func Caution(fstr string, a ...interface{})
- func ChkErr(e error, a ...interface{}) bool
- func ChkErrI(e error, i []error, a ...interface{}) bool
- func ChkErrList(errs []error, a ...interface{}) bool
- func ChkErrP(e error, a ...interface{})
- func ChkErrX(e error, a ...interface{})
- func ChkTru(tst bool, a ...interface{}) bool
- func ChkTruP(tst bool, a ...interface{})
- func ChkTruX(tst bool, a ...interface{})
- func Color()
- func Danger(fstr string, a ...interface{})
- func ERROR(fstr string, a ...interface{})
- func Echo(fstr string, a ...interface{})
- func ErrAt() (string, int)
- func ErrWasAt() (string, int)
- func Error(fstr string, a ...interface{})
- func ExpErr(e, x error) bool
- func FAULT(fstr string, a ...interface{})
- func Failed(fstr string, a ...interface{})
- func Fatal(a ...interface{})
- func FatalIf(b bool, a ...interface{})
- func FatalIfErr(e error, a ...interface{})
- func IAm() string
- func IWas() string
- func ImAt() string
- func Info(fstr string, a ...interface{})
- func Link()
- func Message(fstr string, a ...interface{})
- func MustHave(a ...interface{}) error
- func MustHaveP(a ...interface{})
- func NoColor()
- func Note(fstr string, a ...interface{})
- func Panic(a ...interface{})
- func PanicIf(b bool, a ...interface{})
- func PanicIfErr(e error, a ...interface{})
- func StackTrace()
- func Status(fstr string, a ...interface{})
- func TRC(a ...interface{})
- func TRCFROM(a ...interface{})
- func TRCIF(b bool, a ...interface{})
- func WARNING(fstr string, a ...interface{})
- func Warning(fstr string, a ...interface{})
- func WasAt() string
- type Dbg
- func (d *Dbg) Caution(fstr string, a ...interface{})
- func (d *Dbg) ChkErr(e error, a ...interface{}) bool
- func (d *Dbg) ChkErrI(e error, i []error, a ...interface{}) bool
- func (d *Dbg) ChkTru(tst bool, a ...interface{}) bool
- func (d *Dbg) Danger(fstr string, a ...interface{})
- func (d *Dbg) Echo(fstr string, a ...interface{})
- func (d *Dbg) Error(fstr string, a ...interface{})
- func (d *Dbg) Failed(fstr string, a ...interface{})
- func (d *Dbg) Info(fstr string, a ...interface{})
- func (d *Dbg) Message(fstr string, a ...interface{})
- func (d *Dbg) Note(fstr string, a ...interface{})
- func (d *Dbg) Status(fstr string, a ...interface{})
- func (d Dbg) TRC(a ...interface{})
- func (d Dbg) TRCFROM(a ...interface{})
- func (d *Dbg) Warning(fstr string, a ...interface{})
- type DbgLvl
- func (d DbgLvl) Caution(l int, fstr string, a ...interface{})
- func (d DbgLvl) ChkErr(l int, e error, a ...interface{}) bool
- func (d DbgLvl) ChkTru(l int, tst bool, a ...interface{}) bool
- func (d DbgLvl) Danger(l int, fstr string, a ...interface{})
- func (d DbgLvl) Echo(l int, fstr string, a ...interface{})
- func (d DbgLvl) Error(l int, fstr string, a ...interface{})
- func (d DbgLvl) Failed(l int, fstr string, a ...interface{})
- func (d DbgLvl) Info(l int, fstr string, a ...interface{})
- func (d DbgLvl) Message(l int, fstr string, a ...interface{})
- func (d DbgLvl) Note(l int, fstr string, a ...interface{})
- func (d DbgLvl) Status(l int, fstr string, a ...interface{})
- func (d DbgLvl) Warning(l int, fstr string, a ...interface{})
- type DbgMsk
- func (d DbgMsk) Caution(m uint32, fstr string, a ...interface{})
- func (d DbgMsk) ChkErr(m uint32, l int, e error, a ...interface{}) bool
- func (d DbgMsk) ChkTru(m uint32, l int, tst bool, a ...interface{}) bool
- func (d DbgMsk) Danger(m uint32, fstr string, a ...interface{})
- func (d DbgMsk) Echo(m uint32, fstr string, a ...interface{})
- func (d DbgMsk) Error(m uint32, fstr string, a ...interface{})
- func (d DbgMsk) Failed(m uint32, fstr string, a ...interface{})
- func (d DbgMsk) Info(m uint32, fstr string, a ...interface{})
- func (d DbgMsk) Message(m uint32, fstr string, a ...interface{})
- func (d DbgMsk) Note(m uint32, fstr string, a ...interface{})
- func (d DbgMsk) Status(m uint32, fstr string, a ...interface{})
- func (d DbgMsk) Warning(m uint32, fstr string, a ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CAUTION ¶
func CAUTION(fstr string, a ...interface{})
black on yellow (bright orange) text to output
func ChkErrList ¶
output err message if there are any errors in the given list
func ChkErrP ¶
func ChkErrP(e error, a ...interface{})
output err message and PANIC if given error isn't nil
func ChkErrX ¶
func ChkErrX(e error, a ...interface{})
output err message and EXIT if given error isn't nil
func ChkTruP ¶
func ChkTruP(tst bool, a ...interface{})
output err message if test not true, then PANIC
func ChkTruX ¶
func ChkTruX(tst bool, a ...interface{})
output err message if test not true, then EXIT
func Danger ¶
func Danger(fstr string, a ...interface{})
bold white on red background text to output
func Link ¶
func Link()
dummy func to allow external use / non-use
have dbg.Link() at start of file and you can enable / disable dbg code without getting the pesky build errors for import use of non-use -- should remove after any debug along with the import
func TRC ¶
func TRC(a ...interface{})
a quick 'I am here' function for debugging & tracking, takes optional trc_args
func TRCFROM ¶
func TRCFROM(a ...interface{})
a quick 'I came from' function for debugging & tracking, takes optional trc_args
Types ¶
type Dbg ¶
type Dbg struct { Enabled bool MaxOut int // maximum number of lines to output before doing system exit (0==unlimited) }
Debug output that can work off of a simple bool flag
type DbgLvl ¶
type DbgLvl struct {
Level int
}
Debug output that can work off of an output level:
In general, the higher the DbgLvl, the more output if DbgLvl == 0, all output is disabled if DbgLvl < level, output is disabled
type DbgMsk ¶
type DbgMsk struct {
Mask uint32
}
Debug output that can work off of an output mask:
if DbgMsk & mask == 0, output is disabled