Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(292)

Issue 14190044: code review 14190044: encoding/json: add an example for RawMessage (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 1 month ago by josharian
Modified:
12 years, 1 month ago
Reviewers:
adg
CC:
golang-dev, adg
Visibility:
Public.

Description

encoding/json: add an example for RawMessage RawMessage is useful and mildly non-obvious. Given the frequency with which RawMessage questions show up on golang-nuts, and get answered with an example, I suspect adding an example to the docs might help.

Patch Set 1 #

Patch Set 2 : diff -r 664c8763de42 https://code.google.com/p/go #

Patch Set 3 : diff -r 664c8763de42 https://code.google.com/p/go #

Total comments: 6

Patch Set 4 : diff -r 664c8763de42 https://code.google.com/p/go #

Patch Set 5 : diff -r 664c8763de42 https://code.google.com/p/go #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -0 lines) Patch
M src/pkg/encoding/json/example_test.go View 1 2 3 1 chunk +46 lines, -0 lines 0 comments Download

Messages

Total messages: 6
josharian
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go
12 years, 1 month ago (2013-10-01 19:33:17 UTC) #1
adg
Thanks for thsi. https://codereview.appspot.com/14190044/diff/6001/src/pkg/encoding/json/example_test.go File src/pkg/encoding/json/example_test.go (right): https://codereview.appspot.com/14190044/diff/6001/src/pkg/encoding/json/example_test.go#newcode114 src/pkg/encoding/json/example_test.go:114: switch c.Space { this could be ...
12 years, 1 month ago (2013-10-02 05:07:11 UTC) #2
josharian
Hello golang-dev@googlegroups.com, adg@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 1 month ago (2013-10-02 15:33:00 UTC) #3
josharian
Oops, I expected these comments would also get sent when I ran `hg mail`. I ...
12 years, 1 month ago (2013-10-02 15:34:42 UTC) #4
adg
LGTM Boring is OK. :-)
12 years, 1 month ago (2013-10-02 22:51:41 UTC) #5
adg
12 years, 1 month ago (2013-10-02 22:52:30 UTC) #6
*** Submitted as https://code.google.com/p/go/source/detail?r=f14c05d8145f ***

encoding/json: add an example for RawMessage

RawMessage is useful and mildly non-obvious.
Given the frequency with which RawMessage questions
show up on golang-nuts, and get answered with an example,
I suspect adding an example to the docs might help.

R=golang-dev, adg
CC=golang-dev
https://codereview.appspot.com/14190044

Committer: Andrew Gerrand <adg@golang.org>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b