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

Issue 4972052: code review 4972052: gofix: do not convert url in field names (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 8 months ago by niemeyer
Modified:
13 years, 7 months ago
Reviewers:
CC:
golang-dev, rsc, adg
Visibility:
Public.

Description

gofix: do not convert url in field names There's some ambiguity in the U{url: url} case as it could be both a map or a struct literal, but given context it's more likely a struct, so U{url: url_} rather than U{url_: url_}. At least that was the case for me.

Patch Set 1 #

Patch Set 2 : code review 4972052: gofix: do not convert url in field names #

Patch Set 3 : diff -r 8ba690ce9e4f https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r 8ba690ce9e4f https://go.googlecode.com/hg/ #

Patch Set 5 : diff -r 8ba690ce9e4f https://go.googlecode.com/hg/ #

Patch Set 6 : diff -r 8ba690ce9e4f https://go.googlecode.com/hg/ #

Patch Set 7 : diff -r 8ba690ce9e4f https://go.googlecode.com/hg/ #

Patch Set 8 : diff -r 3287b675eb64 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -1 line) Patch
M src/cmd/gofix/url.go View 1 2 3 3 chunks +12 lines, -1 line 0 comments Download
M src/cmd/gofix/url_test.go View 1 2 2 chunks +10 lines, -0 lines 0 comments Download

Messages

Total messages: 5
niemeyer
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 8 months ago (2011-08-31 11:13:16 UTC) #1
rsc
> There's some ambiguity in the U{url: url} case as it could be > both ...
13 years, 8 months ago (2011-08-31 11:25:29 UTC) #2
niemeyer
> It doesn't look like you need an after func. PTAL
13 years, 8 months ago (2011-08-31 12:03:21 UTC) #3
adg
LGTM
13 years, 8 months ago (2011-09-02 00:35:50 UTC) #4
niemeyer
13 years, 7 months ago (2011-09-03 19:02:04 UTC) #5
*** Submitted as http://code.google.com/p/go/source/detail?r=0f7a647510f9 ***

gofix: do not convert url in field names

There's some ambiguity in the U{url: url} case as it could be
both a map or a struct literal, but given context it's more
likely a struct, so U{url: url_} rather than U{url_: url_}.
At least that was the case for me.

R=golang-dev, rsc, adg
CC=golang-dev
http://codereview.appspot.com/4972052
Sign in to reply to this message.

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