Documentation
¶
Overview ¶
Package q provides quick and dirty debugging output for tired programmers.
q.Q() is a fast way to pretty-print variables. It's easier than typing fmt.Printf("%#v", whatever). The output will be colorized and nicely formatted. The output goes to $TMPDIR/q, away from the noise of stdout.
q exports a single Q() function. This is how you use it:
import "q" ... q.Q(a, b, c)
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Colors determines whether we output colors or not Colors bool = true // OutputFile is the default output file (`/tmp/q`); set to `""` for `os.Stderr` OutputFile string = filepath.Join(os.TempDir(), "q") )
nolint: gochecknoglobals
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.