package gob
// This file is not normally included in the gob package. Used only for debugging the package itself.
+// Add debug.go to the files listed in the Makefile to add Debug to the gob package.
import (
"bytes"
var dump = false // If true, print the remaining bytes in the input buffer at each item.
// Init installs the debugging facility. If this file is not compiled in the
-// package, Debug will be a no-op.
+// package, the test in codec_test.go is a no-op.
func init() {
debugFunc = Debug
}
return dec.err
}
-// If enabled, Debug prints a human-readable representation of the gob data read from r.
-// If debug.go is compiled into the program it will override this link.
+// If debug.go is compiled into the program , debugFunc prints a human-readable
+// representation of the gob data read from r by calling that file's Debug function.
+// Otherwise it is nil.
var debugFunc func(io.Reader)