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
83771afe
Commit
83771afe
authored
May 24, 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
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
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 (
...
@@ -96,7 +96,7 @@ import (
//
//
// Channel, complex, and function values cannot be encoded in JSON.
// Channel, complex, and function values cannot be encoded in JSON.
// Attempting to encode such a value causes Marshal to return
// 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
// JSON cannot represent cyclic data structures and Marshal does not
// handle them. Passing cyclic structures to Marshal will result in
// handle them. Passing cyclic structures to Marshal will result in
...
@@ -157,6 +157,8 @@ type Marshaler interface {
...
@@ -157,6 +157,8 @@ type Marshaler interface {
MarshalJSON
()
([]
byte
,
error
)
MarshalJSON
()
([]
byte
,
error
)
}
}
// An UnsupportedTypeError is returned by Marshal when attempting
// to encode an unsupported value type.
type
UnsupportedTypeError
struct
{
type
UnsupportedTypeError
struct
{
Type
reflect
.
Type
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