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

Issue 3952041: code review 3952041: json: do not Marshal unexported struct fields (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 2 months ago by adg
Modified:
14 years, 2 months ago
Reviewers:
CC:
r, cw, niemeyer, rsc, golang-dev
Visibility:
Public.

Description

json: do not Marshal unexported struct fields

Patch Set 1 #

Total comments: 2

Patch Set 2 : code review 3952041: json: do not Marshal unexported struct fields #

Patch Set 3 : code review 3952041: json: do not Marshal unexported struct fields #

Patch Set 4 : code review 3952041: json: do not Marshal unexported struct fields #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -2 lines) Patch
M src/pkg/json/decode_test.go View 1 chunk +2 lines, -0 lines 0 comments Download
M src/pkg/json/encode.go View 1 2 2 chunks +9 lines, -2 lines 0 comments Download

Messages

Total messages: 11
adg
Hello r (cc: golang-dev@googlegroups.com), I'd like you to review this change.
14 years, 2 months ago (2011-01-11 05:17:49 UTC) #1
cw
Then it's behavior differs from that of gobs.
14 years, 2 months ago (2011-01-11 05:28:30 UTC) #2
niemeyer
http://codereview.appspot.com/3952041/diff/1/src/pkg/json/encode.go File src/pkg/json/encode.go (right): http://codereview.appspot.com/3952041/diff/1/src/pkg/json/encode.go#newcode227 src/pkg/json/encode.go:227: continue You may want to use f.PkgPath != "" ...
14 years, 2 months ago (2011-01-11 05:31:08 UTC) #3
adg
On 11 January 2011 16:28, <cw@f00f.org> wrote: > Then it's behavior differs from that of ...
14 years, 2 months ago (2011-01-11 05:32:18 UTC) #4
adg
http://codereview.appspot.com/3952041/diff/1/src/pkg/json/encode.go File src/pkg/json/encode.go (right): http://codereview.appspot.com/3952041/diff/1/src/pkg/json/encode.go#newcode227 src/pkg/json/encode.go:227: continue On 2011/01/11 05:31:09, niemeyer wrote: > You may ...
14 years, 2 months ago (2011-01-11 05:36:35 UTC) #5
cw
> It already does, in that you can't Unmarshal into an unexported field. True. I ...
14 years, 2 months ago (2011-01-11 05:37:50 UTC) #6
rsc
not sure about this; see also issue 1263
14 years, 2 months ago (2011-01-11 16:09:23 UTC) #7
adg
Given the gob and template CLs, are we moving forward with this? On 12 January ...
14 years, 2 months ago (2011-01-12 00:49:20 UTC) #8
r2
On Jan 11, 2011, at 4:48 PM, Andrew Gerrand wrote: > Given the gob and ...
14 years, 2 months ago (2011-01-12 00:52:54 UTC) #9
rsc1
LGTM
14 years, 2 months ago (2011-01-12 00:53:08 UTC) #10
adg
14 years, 2 months ago (2011-01-12 00:59:39 UTC) #11
*** Submitted as http://code.google.com/p/go/source/detail?r=5199c9ed7472 ***

json: do not Marshal unexported struct fields

R=r, cw, niemeyer, rsc
CC=golang-dev
http://codereview.appspot.com/3952041
Sign in to reply to this message.

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