xxx

package module
v0.0.0-...-996d259 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2015 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

xxx is a debuging library for golang.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Called

func Called(message ...string)

func CalledX

func CalledX(x int, message ...string)

func CaptureStdOutAndErr

func CaptureStdOutAndErr() func() string

CaptureStdOutAndErr captures all std out/err until the returned func is called. That func returns any captured output as a string. This is useful for capturing remote output (e.g. on a server) and writing it to a file or piping it to a log etc.

func Dump

func Dump(x ...interface{})

Dump prints all information on x.

func DumpColl

func DumpColl(db *mgo.Database, collName string)

DumpColl dumps the contents of a mongo database collection.

func Off

func Off()

Off stops any output being printed from this package.

func On

func On()

On starts any output being printed from this package. When you have code peppered with debugging output, use On and Off to print just the debug outputs you are interested in.

func Print

func Print(v interface{}, message ...string)

Print prints v along with filename and line number of call.

func Printf

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

Printf prints format along with filename and line number of call.

func Stack

func Stack()

Stack prints call stack to this point.

Types

This section is empty.

Jump to

Keyboard shortcuts

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