aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Gerrand <adg@golang.org>2011-09-08 10:51:09 +1000
committerAndrew Gerrand <adg@golang.org>2011-09-08 10:51:09 +1000
commite84d4effa1f80c526ac4f5462038d94a050443b1 (patch)
tree9bc91a707e5a295bc7787abb885af55a11ec5634
parentd28f559503f50bf40a70211800dca96e22d544da (diff)
downloadgo-e84d4effa1f80c526ac4f5462038d94a050443b1.tar.gz
go-e84d4effa1f80c526ac4f5462038d94a050443b1.zip
[release-branch.r60] gofix: forgot to rename the URL type
««« CL 4952041 / c51a2f3f897a gofix: forgot to rename the URL type Fixes #2182 R=golang-dev, gri CC=golang-dev https://golang.org/cl/4952041 »»» R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/4951068
-rw-r--r--src/cmd/gofix/url.go1
-rw-r--r--src/cmd/gofix/url_test.go2
2 files changed, 3 insertions, 0 deletions
diff --git a/src/cmd/gofix/url.go b/src/cmd/gofix/url.go
index c1e47bd4e5..f12868dd8e 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 1a7095a5da..d6e3b52ddf 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)