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

Issue 837042: code review 837042: Add support for XML marshalling embedded structs. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 11 months ago by rsn
Modified:
14 years, 11 months ago
Reviewers:
CC:
rsc, golang-dev
Visibility:
Public.

Description

Add support for XML marshalling embedded structs. The newly added methods to the reflection package could be placed in the xml package but that would require duplicating the bulk of the logic which is in the private unmarshal method. The new _test file also contains the case rsc raised on the mailing list re. filed name conflict.

Patch Set 1 #

Patch Set 2 : code review 837042: Add support for XML marshalling embedded structs. #

Total comments: 20

Patch Set 3 : code review 837042: Add support for XML marshalling embedded structs. #

Patch Set 4 : code review 837042: Add support for XML marshalling embedded structs. #

Total comments: 2

Patch Set 5 : code review 837042: Add support for XML marshalling embedded structs. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+160 lines, -19 lines) Patch
M src/pkg/reflect/type.go View 1 2 4 chunks +11 lines, -5 lines 0 comments Download
M src/pkg/reflect/value.go View 1 2 1 chunk +10 lines, -0 lines 0 comments Download
A src/pkg/xml/embed_test.go View 1 2 1 chunk +124 lines, -0 lines 0 comments Download
M src/pkg/xml/read.go View 1 2 3 4 2 chunks +15 lines, -14 lines 0 comments Download

Messages

Total messages: 11
rsn
Hello rsc (cc: golang-dev@googlegroups.com), I'd like you to review this change.
14 years, 11 months ago (2010-03-30 11:59:33 UTC) #1
rsc1
Looks pretty good. Sorry for the delay. http://codereview.appspot.com/837042/diff/6/2001 File src/pkg/reflect/type.go (right): http://codereview.appspot.com/837042/diff/6/2001#newcode1 src/pkg/reflect/type.go:1: // Copyright ...
14 years, 11 months ago (2010-04-11 20:26:02 UTC) #2
rsn
hello Russ, On 2010/04/11 20:26:02, rsc1 wrote: > Looks pretty good. > Sorry for the ...
14 years, 11 months ago (2010-04-12 17:34:54 UTC) #3
rsn
http://codereview.appspot.com/837042/diff/6/2001 File src/pkg/reflect/type.go (right): http://codereview.appspot.com/837042/diff/6/2001#newcode1 src/pkg/reflect/type.go:1: // Copyright 2009-2010 The Go Authors. All rights reserved. ...
14 years, 11 months ago (2010-04-12 17:35:10 UTC) #4
rsn
Hello rsc (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 11 months ago (2010-04-12 17:35:54 UTC) #5
rsn
Hello rsc (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 11 months ago (2010-04-12 17:44:26 UTC) #6
rsc1
Looks good. Small suggestion in xml code. http://codereview.appspot.com/837042/diff/15001/16004 File src/pkg/xml/read.go (right): http://codereview.appspot.com/837042/diff/15001/16004#newcode348 src/pkg/xml/read.go:348: f, found ...
14 years, 11 months ago (2010-04-13 20:59:59 UTC) #7
rsn
hello Russ, i'll mail the amended version soon. thanks again for reviewing this CL! cheers; ...
14 years, 11 months ago (2010-04-14 09:25:45 UTC) #8
rsn
Hello rsc (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 11 months ago (2010-04-14 09:26:55 UTC) #9
rsc
LGTM
14 years, 11 months ago (2010-04-18 21:48:16 UTC) #10
rsc
14 years, 11 months ago (2010-04-18 22:22:39 UTC) #11
*** Submitted as http://code.google.com/p/go/source/detail?r=5ae134ac4dae ***

reflect: add FieldByNameFunc
xml: add support for XML marshalling embedded structs.

R=rsc
CC=golang-dev
http://codereview.appspot.com/837042

Committer: Russ Cox <rsc@golang.org>
Sign in to reply to this message.

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