diff options
author | Andrew Gerrand <adg@golang.org> | 2011-09-08 10:51:09 +1000 |
---|---|---|
committer | Andrew Gerrand <adg@golang.org> | 2011-09-08 10:51:09 +1000 |
commit | bdf5bd5ec5a4dafcd271c486966f0d51a8649b9b (patch) | |
tree | 7658dfc5234efa8c836f0a0332ce0c08f1f9bfef | |
parent | 5764b06b8844ebe0042b14b1a51011fe7629b0c9 (diff) | |
download | go-bdf5bd5ec5a4dafcd271c486966f0d51a8649b9b.tar.gz |
[release-branch.r60] gofix: forgot to rename the URL type
??? CL 4952041 / c51a2f3f897a
gofix: forgot to rename the URL type
Fixes issue 2182
R=golang-dev, gri
CC=golang-dev
http://codereview.appspot.com/4952041
???
R=golang-dev, dsymonds
CC=golang-dev
http://codereview.appspot.com/4951068
-rw-r--r-- | src/cmd/gofix/url.go | 1 | ||||
-rw-r--r-- | src/cmd/gofix/url_test.go | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/cmd/gofix/url.go b/src/cmd/gofix/url.go index c1e47bd4e..f12868dd8 100644 --- a/src/cmd/gofix/url.go +++ b/src/cmd/gofix/url.go @@ -27,6 +27,7 @@ func init() { } var urlRenames = []struct{ in, out string }{ + {"URL", "URL"}, {"ParseURL", "Parse"}, {"ParseURLReference", "ParseWithReference"}, {"ParseQuery", "ParseQuery"}, diff --git a/src/cmd/gofix/url_test.go b/src/cmd/gofix/url_test.go index 1a7095a5d..d6e3b52dd 100644 --- a/src/cmd/gofix/url_test.go +++ b/src/cmd/gofix/url_test.go @@ -18,6 +18,7 @@ import ( ) func f() { + var _ http.URL http.ParseURL(a) http.ParseURLReference(a) http.ParseQuery(a) @@ -33,6 +34,7 @@ func f() { import "url" func f() { + var _ url.URL url.Parse(a) url.ParseWithReference(a) url.ParseQuery(a) |