debug

package
v0.0.0-...-0bbd9cc Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2012 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Debug functions.

Index

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 CallStackInfo(skip int) (info string)

func Dump

func Dump(values ...interface{})

func Format

func Format(value interface{}) string

func FormatSkip

func FormatSkip(skip int, value interface{}) string

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 Print

func Print(values ...interface{})

func PrintCallStack

func PrintCallStack()

func Printf

func Printf(format string, values ...interface{})

func Quit

func Quit()

func Stack

func Stack() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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