Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
297a08ea
Commit
297a08ea
authored
Aug 25, 2011
by
Rob Pike
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gofix: forgot to rename the URL type
Fixes #2182 R=golang-dev, gri CC=golang-dev
https://golang.org/cl/4952041
parent
56f94847
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
url.go
src/cmd/gofix/url.go
+1
-0
url_test.go
src/cmd/gofix/url_test.go
+2
-0
No files found.
src/cmd/gofix/url.go
View file @
297a08ea
...
@@ -27,6 +27,7 @@ func init() {
...
@@ -27,6 +27,7 @@ func init() {
}
}
var
urlRenames
=
[]
struct
{
in
,
out
string
}{
var
urlRenames
=
[]
struct
{
in
,
out
string
}{
{
"URL"
,
"URL"
},
{
"ParseURL"
,
"Parse"
},
{
"ParseURL"
,
"Parse"
},
{
"ParseURLReference"
,
"ParseWithReference"
},
{
"ParseURLReference"
,
"ParseWithReference"
},
{
"ParseQuery"
,
"ParseQuery"
},
{
"ParseQuery"
,
"ParseQuery"
},
...
...
src/cmd/gofix/url_test.go
View file @
297a08ea
...
@@ -18,6 +18,7 @@ import (
...
@@ -18,6 +18,7 @@ import (
)
)
func f() {
func f() {
var _ http.URL
http.ParseURL(a)
http.ParseURL(a)
http.ParseURLReference(a)
http.ParseURLReference(a)
http.ParseQuery(a)
http.ParseQuery(a)
...
@@ -33,6 +34,7 @@ func f() {
...
@@ -33,6 +34,7 @@ func f() {
import "url"
import "url"
func f() {
func f() {
var _ url.URL
url.Parse(a)
url.Parse(a)
url.ParseWithReference(a)
url.ParseWithReference(a)
url.ParseQuery(a)
url.ParseQuery(a)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment