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

Issue 7106045: code review 7106045: xml: Support fields not of type []byte when marshaling ... (Closed)

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

Description

xml: Support fields not of type []byte when marshaling ",chardata" Fixes issue 4506.

Patch Set 1 #

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

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

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

Total comments: 4

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -0 lines) Patch
M src/pkg/encoding/xml/marshal.go View 1 2 3 4 1 chunk +13 lines, -0 lines 0 comments Download
M src/pkg/encoding/xml/marshal_test.go View 1 2 3 4 2 chunks +36 lines, -0 lines 0 comments Download

Messages

Total messages: 11
vegacom
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go
11 years, 3 months ago (2013-01-14 13:45:25 UTC) #1
vegacom
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), Please take another look.
11 years, 3 months ago (2013-01-15 13:39:30 UTC) #2
vegacom
The first patch lacked support for time.Time. It's added in this latest version.
11 years, 3 months ago (2013-01-15 13:40:29 UTC) #3
rsc
Looks good, thanks. https://codereview.appspot.com/7106045/diff/6004/src/pkg/encoding/xml/marshal.go File src/pkg/encoding/xml/marshal.go (right): https://codereview.appspot.com/7106045/diff/6004/src/pkg/encoding/xml/marshal.go#newcode288 src/pkg/encoding/xml/marshal.go:288: Escape(p, []byte(strconv.FormatFloat(vf.Float(), 'g', -1, 64))) This ...
11 years, 3 months ago (2013-01-18 22:13:06 UTC) #4
remyoudompheng
https://codereview.appspot.com/7106045/diff/6004/src/pkg/encoding/xml/marshal.go File src/pkg/encoding/xml/marshal.go (right): https://codereview.appspot.com/7106045/diff/6004/src/pkg/encoding/xml/marshal.go#newcode283 src/pkg/encoding/xml/marshal.go:283: case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: you should be ...
11 years, 3 months ago (2013-01-18 22:14:45 UTC) #5
vegacom
Hello golang-dev@googlegroups.com, rsc@golang.org, remyoudompheng@gmail.com (cc: golang-dev@googlegroups.com), Please take another look.
11 years, 3 months ago (2013-01-19 02:43:42 UTC) #6
vegacom
Thanks for the review. is it in the scope of this CL to fix marshalSimple? ...
11 years, 3 months ago (2013-01-19 02:44:09 UTC) #7
rsc
LGTM I'll submit this now since it's ready but feel free to send in a ...
11 years, 3 months ago (2013-01-22 22:45:47 UTC) #8
rsc
Actually, it looks like you need to complete a CLA as described at golang.org/doc/contribute.html#copyright. Thanks.
11 years, 3 months ago (2013-01-22 22:46:31 UTC) #9
vegacom
Done
11 years, 3 months ago (2013-01-22 23:01:43 UTC) #10
rsc
11 years, 3 months ago (2013-01-23 03:13:46 UTC) #11
*** Submitted as https://code.google.com/p/go/source/detail?r=047a34a904eb ***

xml: Support fields not of type []byte when marshaling ",chardata"

Fixes issue 4506.

R=rsc, remyoudompheng
CC=golang-dev
https://codereview.appspot.com/7106045

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