Documentation ¶
Overview ¶
Debug functions.
Index ¶
- Variables
- func CallStackInfo(skip int) (info string)
- func Dump(values ...interface{})
- func Format(value interface{}) string
- func FormatSkip(skip int, value interface{}) string
- func LogCallStack()
- func Nop(dummiesIn ...interface{}) (dummyOut interface{})
- func Print(values ...interface{})
- func PrintCallStack()
- func Printf(format string, values ...interface{})
- func Quit()
- func Stack() string
Constants ¶
This section is empty.
Variables ¶
View Source
var Logger = log.New(os.Stdout, "", 0)
Set Logger to nil to suppress debug output
Functions ¶
func CallStackInfo ¶
func FormatSkip ¶
func LogCallStack ¶
func LogCallStack()
func Nop ¶
func Nop(dummiesIn ...interface{}) (dummyOut interface{})
Nop is a dummy function that can be called in source files where other debug functions are constantly added and removed. That way import "github.com/ungerik/go-start/debug" won't cause an error when no other debug function is currently used. Arbitrary objects can be passed as arguments to avoid "declared and not used" error messages when commenting code out and in. The result is a nil interface{} dummy value.
func PrintCallStack ¶
func PrintCallStack()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.