Documentation ¶
Overview ¶
xxx is a debuging library for golang.
Index ¶
- func Called(message ...string)
- func CalledX(x int, message ...string)
- func CaptureStdOutAndErr() func() string
- func Dump(x ...interface{})
- func DumpColl(db *mgo.Database, collName string)
- func Off()
- func On()
- func Print(v interface{}, message ...string)
- func Printf(format string, vars ...interface{})
- func Stack()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 DumpColl ¶
func DumpColl(db *mgo.Database, collName string)
DumpColl dumps the contents of a mongo database collection.
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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.