1
0
mirror of https://github.com/golang/go synced 2024-11-21 18:44:45 -07:00

gob: explain that Debug isn't useful unless it's compiled in.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/4930044
This commit is contained in:
Rob Pike 2011-08-22 22:43:49 +10:00
parent d9c9c48797
commit 93134e06ba

View File

@ -154,6 +154,7 @@ func (deb *debugger) dump(format string, args ...interface{}) {
}
// Debug prints a human-readable representation of the gob data read from r.
// It is a no-op unless debugging was enabled when the package was built.
func Debug(r io.Reader) {
err := debug(r)
if err != nil {