Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
83771afe
Commit
83771afe
authored
May 23, 2012
by
Brad Fitzpatrick
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
encoding/json: documentation fix
Fixes #3650 R=golang-dev, adg CC=golang-dev
https://golang.org/cl/6238046
parent
1f46cb0b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
src/pkg/encoding/json/encode.go
src/pkg/encoding/json/encode.go
+3
-1
No files found.
src/pkg/encoding/json/encode.go
View file @
83771afe
...
...
@@ -96,7 +96,7 @@ import (
//
// Channel, complex, and function values cannot be encoded in JSON.
// Attempting to encode such a value causes Marshal to return
// an
Invali
dTypeError.
// an
Unsupporte
dTypeError.
//
// JSON cannot represent cyclic data structures and Marshal does not
// handle them. Passing cyclic structures to Marshal will result in
...
...
@@ -157,6 +157,8 @@ type Marshaler interface {
MarshalJSON
()
([]
byte
,
error
)
}
// An UnsupportedTypeError is returned by Marshal when attempting
// to encode an unsupported value type.
type
UnsupportedTypeError
struct
{
Type
reflect
.
Type
}
...
...
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