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

Issue 4528114: code review 4528114: Package xml: Add ability to use non-string fields as at...

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

Description

Package xml: Add ability to use non-string fields as attributes.

Patch Set 1 #

Patch Set 2 : diff -r 334b588b4e4f https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 334b588b4e4f https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r 334b588b4e4f https://go.googlecode.com/hg/ #

Total comments: 6

Patch Set 5 : diff -r 334b588b4e4f https://go.googlecode.com/hg/ #

Total comments: 4

Patch Set 6 : diff -r 334b588b4e4f https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -35 lines) Patch
M src/pkg/xml/read.go View 1 2 3 4 5 6 chunks +48 lines, -35 lines 0 comments Download
M src/pkg/xml/read_test.go View 1 1 chunk +44 lines, -0 lines 0 comments Download

Messages

Total messages: 11
ushakov
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
14 years ago (2011-06-01 18:54:09 UTC) #1
kevlar
I have mild objections to this. This seems to set the precedent that we can ...
14 years ago (2011-06-01 20:47:01 UTC) #2
ushakov
Hello golang-dev@googlegroups.com, kevlar@google.com (cc: golang-dev@googlegroups.com), Please take another look.
14 years ago (2011-06-02 17:29:34 UTC) #3
ushakov
Hi I'm sorry I don't fully understand your objections. Current implementation already allows for <answer>42</answer> ...
14 years ago (2011-06-02 17:30:58 UTC) #4
kevlar
My <answer/> example was incomplete. Take this somewhat more plausible example: <port>80</port> <port> 80 <ssl ...
14 years ago (2011-06-02 19:20:13 UTC) #5
rsc
Using non-string types for attributes seems fine. I don't see any reason this would make ...
14 years ago (2011-06-02 19:31:18 UTC) #6
rsc
LGTM http://codereview.appspot.com/4528114/diff/14001/src/pkg/xml/read.go File src/pkg/xml/read.go (right): http://codereview.appspot.com/4528114/diff/14001/src/pkg/xml/read.go#newcode122 src/pkg/xml/read.go:122: // Unmarshal maps an XML element or attribute ...
14 years ago (2011-06-03 17:57:34 UTC) #7
ushakov
http://codereview.appspot.com/4528114/diff/9001/src/pkg/xml/read.go File src/pkg/xml/read.go (right): http://codereview.appspot.com/4528114/diff/9001/src/pkg/xml/read.go#newcode120 src/pkg/xml/read.go:120: // maps the sub-element to that struct field. On ...
14 years ago (2011-06-03 18:10:55 UTC) #8
ushakov
Please take another look.
13 years, 12 months ago (2011-06-07 20:04:29 UTC) #9
rsc
LGTM Thanks.
13 years, 11 months ago (2011-06-14 15:49:47 UTC) #10
rsc
13 years, 11 months ago (2011-06-14 15:51:07 UTC) #11
*** Submitted as http://code.google.com/p/go/source/detail?r=138cdbcafce8 ***

xml: handle non-string attribute fields

R=kevlar, rsc
CC=golang-dev
http://codereview.appspot.com/4528114

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