1
0
mirror of https://github.com/golang/go synced 2024-11-24 21:10:04 -07:00

gofix: forgot to rename the URL type

Fixes #2182

R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/4952041
This commit is contained in:
Rob Pike 2011-08-25 10:16:11 +10:00
parent 56f948470e
commit 297a08ea66
2 changed files with 3 additions and 0 deletions

View File

@ -27,6 +27,7 @@ func init() {
}
var urlRenames = []struct{ in, out string }{
{"URL", "URL"},
{"ParseURL", "Parse"},
{"ParseURLReference", "ParseWithReference"},
{"ParseQuery", "ParseQuery"},

View 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)