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

Issue 157104: code review 157104: Fixed a problem of xml module (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
16 years, 6 months ago by hey
Modified:
16 years, 6 months ago
Reviewers:
CC:
rsc, r
Visibility:
Public.

Description

As your adrress, I dropped invalid letters to make a variable name. But I made new function named 'Filter' instead of using 'Map' with multipurpose like returning '-1' to drop letter or byte. Cause map is map. As far as I know that commonly map returns revised list with same size. But another things arre guided your last advise. thank you.

Patch Set 1 #

Patch Set 2 : code review 157104: It ensure that an attribute's name has only valid chara... #

Total comments: 1

Patch Set 3 : code review 157104: at xml package of golang: #

Patch Set 4 : code review 157104: As your adrress, I dropped invalid letters to make a va... #

Patch Set 5 : code review 157104: As your adrress, I dropped invalid letters to make a va... #

Total comments: 7

Patch Set 6 : code review 157104: As your adrress, I dropped invalid letters to make a va... #

Total comments: 22

Patch Set 7 : code review 157104: As your adrress, I dropped invalid letters to make a va... #

Patch Set 8 : code review 157104: As your adrress, I dropped invalid letters to make a va... #

Total comments: 2

Patch Set 9 : code review 157104: As your adrress, I dropped invalid letters to make a va... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -27 lines) Patch
M src/pkg/bytes/bytes.go View 4 5 6 7 8 2 chunks +12 lines, -9 lines 0 comments Download
M src/pkg/bytes/bytes_test.go View 4 5 6 7 8 1 chunk +13 lines, -0 lines 0 comments Download
M src/pkg/strings/strings.go View 4 5 6 2 chunks +17 lines, -14 lines 0 comments Download
M src/pkg/strings/strings_test.go View 4 5 6 7 8 1 chunk +13 lines, -0 lines 0 comments Download
M src/pkg/xml/read.go View 1 2 3 4 5 6 7 8 4 chunks +17 lines, -2 lines 0 comments Download
M src/pkg/xml/read_test.go View 4 5 6 7 2 chunks +20 lines, -2 lines 0 comments Download

Messages

Total messages: 24
hey
Hello r, I'd like you to review the following change.
16 years, 6 months ago (2009-11-20 08:57:26 UTC) #1
r
changing reviewer to rsc
16 years, 6 months ago (2009-11-20 18:44:53 UTC) #2
rsc
Thanks for suggesting this. A few comments below. Please also update xml_test.go to exercise this ...
16 years, 6 months ago (2009-11-20 21:00:10 UTC) #3
hey
ok. thanks for good suggestion. and also I probably should do handle first letter of ...
16 years, 6 months ago (2009-11-21 03:19:01 UTC) #4
hey
As your adrress, I dropped invalid letters to make a variable name. But I made ...
16 years, 6 months ago (2009-11-25 04:40:28 UTC) #5
hey
PTAL
16 years, 6 months ago (2009-11-25 04:41:07 UTC) #6
hey
PTAL
16 years, 6 months ago (2009-11-30 01:27:18 UTC) #7
rsc
I still think it would be better to define Map's behavior when the function returns ...
16 years, 6 months ago (2009-11-30 02:11:24 UTC) #8
hey
Yes, it seems more powerful. But, meaning of map is known different with that in ...
16 years, 6 months ago (2009-11-30 02:47:33 UTC) #9
rsc
On Sun, Nov 29, 2009 at 18:47, <hey.calmdown@gmail.com> wrote: > Yes, it seems more powerful. ...
16 years, 6 months ago (2009-11-30 02:56:49 UTC) #10
hey
ok. I fixed it. Thanks. http://codereview.appspot.com/157104/diff/3009/4005 File src/pkg/xml/read.go (right): http://codereview.appspot.com/157104/diff/3009/4005#newcode150 src/pkg/xml/read.go:150: func Validated(original string) string ...
16 years, 6 months ago (2009-11-30 05:17:05 UTC) #11
rsc
looking pretty good http://codereview.appspot.com/157104/diff/5005/5006 File src/pkg/bytes/bytes.go (right): http://codereview.appspot.com/157104/diff/5005/5006#newcode209 src/pkg/bytes/bytes.go:209: func Filter(filter func(int) bool, s []byte) ...
16 years, 6 months ago (2009-11-30 05:44:47 UTC) #12
hey
Thanks, I've done except one. :) Please check my final comment. http://codereview.appspot.com/157104/diff/5005/5006 File src/pkg/bytes/bytes.go (right): ...
16 years, 6 months ago (2009-11-30 06:12:26 UTC) #13
rsc
> I just modified for attribute's name. Not tag's name. Where is the bunch > ...
16 years, 6 months ago (2009-11-30 18:37:36 UTC) #14
hey
ok. I've done.
16 years, 6 months ago (2009-12-01 01:33:45 UTC) #15
hey
PTAL Is it ok?
16 years, 6 months ago (2009-12-03 12:29:47 UTC) #16
rsc
looks good. one final nit http://codereview.appspot.com/157104/diff/7001/7006 File src/pkg/xml/read.go (right): http://codereview.appspot.com/157104/diff/7001/7006#newcode155 src/pkg/xml/read.go:155: return x return unicode.ToLower(x); ...
16 years, 6 months ago (2009-12-03 20:56:13 UTC) #17
hey
Ok. good point. Thanks. I've done. http://codereview.appspot.com/157104/diff/7001/7006 File src/pkg/xml/read.go (right): http://codereview.appspot.com/157104/diff/7001/7006#newcode155 src/pkg/xml/read.go:155: return x On ...
16 years, 6 months ago (2009-12-07 00:56:31 UTC) #18
rsc
LGTM thanks
16 years, 6 months ago (2009-12-07 18:30:59 UTC) #19
rsc
please complete the appropriate CLA as described at http://golang.org/doc/contribute.html#copyright. don't bother changing AUTHORS or CONTRIBUTORS ...
16 years, 6 months ago (2009-12-07 18:34:11 UTC) #20
hey
I filled it. Thanks for addressed. :) On 2009/12/07 18:34:11, rsc wrote: > please complete ...
16 years, 6 months ago (2009-12-08 00:49:26 UTC) #21
rsc
On 2009/12/08 00:49:26, hey wrote: > I filled it. Thanks for addressed. :) I can't ...
16 years, 6 months ago (2009-12-09 01:25:21 UTC) #22
hey
Sorry, I filled again. Maybe I wrote as wrong address. Kei On 2009/12/09 01:25:21, rsc ...
16 years, 6 months ago (2009-12-09 01:29:09 UTC) #23
rsc
16 years, 6 months ago (2009-12-11 18:38:00 UTC) #24
*** Submitted as http://code.google.com/p/go/source/detail?r=ee32ba55347b ***

bytes, strings: allow -1 in Map to mean "drop this character".

xml: drop invalid characters in attribute names
    when constructing struct field names.

R=rsc
CC=r
http://codereview.appspot.com/157104

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