gdebug

package
v0.0.0-...-5e380c2 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CountPrintf

func CountPrintf(f string, vals ...interface{})

CountPrintf prints the debug message along with a prefix number to identify it

func CountPrintln

func CountPrintln(f ...interface{})

CountPrintln prints the debug message along with a prefix number to identify it

func Debugf

func Debugf(f string, vals ...interface{})

Debugf prints the filename:line_nb of the Debugf call

func Dump

func Dump(a ...interface{})

Dump prints a spew.Dump with filename:line_nb before

func DumpJSON

func DumpJSON(itf interface{})

func Errorf

func Errorf(f string, vals ...interface{}) error

Errorf creates the error, but prepends the filename:line_nb of the creation

func LineInfo

func LineInfo() string

LineInfo returns "{nameoffile}.go:{linenumber}" of the caller

func ResetCount

func ResetCount()

ResetCount resets the count used in CountPrinf

func SmartStack

func SmartStack() string

SmartStack returns the stack starting with exactly the line that panick'ed (goroutine is mentioned still as first line)

func StackIgnoreFirst

func StackIgnoreFirst(n int) string

StackIgnoreFirst retuns the stack with the first n stack items ignored (starting at called position)

Types

This section is empty.

Jump to

Keyboard shortcuts

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