Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
c490bb6f
Commit
c490bb6f
authored
Oct 29, 2010
by
Rob Pike
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gob: clarify the comments about installing the debug/dumper.
R=rsc CC=golang-dev
https://golang.org/cl/2789043
parent
96b9efe8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
debug.go
src/pkg/gob/debug.go
+2
-1
decoder.go
src/pkg/gob/decoder.go
+3
-2
No files found.
src/pkg/gob/debug.go
View file @
c490bb6f
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"
...
...
@@ -14,7 +15,7 @@ import (
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
}
...
...
src/pkg/gob/decoder.go
View file @
c490bb6f
...
...
@@ -153,6 +153,7 @@ func (dec *Decoder) DecodeValue(value reflect.Value) os.Error {
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
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment