]> Cypherpunks repositories - gostls13.git/commitdiff
[release-branch.r60] gofix: forgot to rename the URL type
authorAndrew Gerrand <adg@golang.org>
Thu, 8 Sep 2011 00:51:09 +0000 (10:51 +1000)
committerAndrew Gerrand <adg@golang.org>
Thu, 8 Sep 2011 00:51:09 +0000 (10:51 +1000)
««« 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

src/cmd/gofix/url.go
src/cmd/gofix/url_test.go

index c1e47bd4e552985154229ca664d296de2abe782b..f12868dd8e78f589af425dd828010ca7a749759a 100644 (file)
@@ -27,6 +27,7 @@ func init() {
 }
 
 var urlRenames = []struct{ in, out string }{
+       {"URL", "URL"},
        {"ParseURL", "Parse"},
        {"ParseURLReference", "ParseWithReference"},
        {"ParseQuery", "ParseQuery"},
index 1a7095a5da2dee5c771be456f24ba57a002d568b..d6e3b52ddf524981e35a7e52761a1b3ea25d78c0 100644 (file)
@@ -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)