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

Issue 218050: code review 218050: XML: Change behavior of boolean unmarshaling (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 2 months ago by hoisie
Modified:
10 years, 7 months ago
Reviewers:
darkhelmet, Dominik Honnef
CC:
rsc, golang-dev
Visibility:
Public.

Description

Change behavior of boolean unmarshaling

Patch Set 1 #

Patch Set 2 : code review 218050: XML: Fix boolean unmarshaling #

Patch Set 3 : code review 218050: XML: Fix boolean unmarshaling #

Patch Set 4 : code review 218050: XML: Fix boolean unmarshaling #

Patch Set 5 : code review 218050: XML: Fix boolean unmarshaling #

Patch Set 6 : code review 218050: XML: Fix boolean unmarshaling #

Patch Set 7 : code review 218050: XML: Fix boolean unmarshaling #

Patch Set 8 : code review 218050: Change behavior of boolean unmarshaling #

Patch Set 9 : code review 218050: Change behavior of boolean unmarshaling #

Total comments: 2

Patch Set 10 : code review 218050: Change behavior of boolean unmarshaling #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -9 lines) Patch
M src/pkg/xml/read.go View 1 2 3 4 5 6 7 8 9 4 chunks +6 lines, -5 lines 0 comments Download
M src/pkg/xml/xml_test.go View 1 2 3 4 5 6 7 8 9 4 chunks +13 lines, -4 lines 0 comments Download

Messages

Total messages: 12
hoisie
Hello r (cc: golang-dev@googlegroups.com), I'd like you to review this change.
14 years, 2 months ago (2010-02-22 17:37:40 UTC) #1
rsc
This assumes that boolean unmarshalling is broken. It's behaving exactly as the doc comment says: ...
14 years, 2 months ago (2010-02-22 17:49:25 UTC) #2
hoisie
I think it's very common for schemas to include boolean elements as "true" or "false" ...
14 years, 2 months ago (2010-02-22 17:58:32 UTC) #3
r
changing reviewer to rsc.
14 years, 2 months ago (2010-02-22 20:52:37 UTC) #4
rsc
that's fine. i don't mind changing it, as long as the docs change, which you've ...
14 years, 2 months ago (2010-02-22 22:32:22 UTC) #5
hoisie
done, and updated the docs. On 2010/02/22 22:32:22, rsc wrote: > that's fine. > i ...
14 years, 2 months ago (2010-02-22 23:00:00 UTC) #6
rsc
thanks http://codereview.appspot.com/218050/diff/1022/1023 File src/pkg/xml/read.go (right): http://codereview.appspot.com/218050/diff/1022/1023#newcode109 src/pkg/xml/read.go:109: // string value is "true" or "1"; otherwise ...
14 years, 2 months ago (2010-02-22 23:08:15 UTC) #7
hoisie
Done On 2010/02/22 23:08:15, rsc wrote: > thanks > > http://codereview.appspot.com/218050/diff/1022/1023 > File src/pkg/xml/read.go (right): ...
14 years, 2 months ago (2010-02-22 23:14:34 UTC) #8
rsc
*** Submitted as http://code.google.com/p/go/source/detail?r=c040d89a73f7 *** xml: treat bool as value in Unmarshal R=rsc CC=golang-dev http://codereview.appspot.com/218050 ...
14 years, 2 months ago (2010-02-22 23:21:16 UTC) #9
darkhelmet_darkhelmetlive.com
Sorry to drag things back from the dead, but I'm trying to unmarshal a node ...
10 years, 8 months ago (2013-08-18 06:02:21 UTC) #10
Dominik Honnef
There's support for custom (un)marshaling in encoding/xml since around CL 12556043. On 2013/08/18 06:02:21, darkhelmet_darkhelmetlive.com ...
10 years, 8 months ago (2013-08-18 15:48:51 UTC) #11
rsc
10 years, 7 months ago (2013-09-03 20:28:29 UTC) #12
You can use a *struct{} and check whether it is nil after unmarshal.
Sign in to reply to this message.

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