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
b6f671b9
Commit
b6f671b9
authored
Jan 25, 2012
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gofix: update go1pkgrename for subrepositories
R=golang-dev, bradfitz CC=golang-dev
https://golang.org/cl/5576044
parent
2355d18e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
0 deletions
+30
-0
go1pkgrename.go
src/cmd/gofix/go1pkgrename.go
+26
-0
go1pkgrename_test.go
src/cmd/gofix/go1pkgrename_test.go
+4
-0
No files found.
src/cmd/gofix/go1pkgrename.go
View file @
b6f671b9
...
...
@@ -50,6 +50,32 @@ var go1PackageRenames = []struct{ old, new string }{
{
"utf16"
,
"unicode/utf16"
},
{
"utf8"
,
"unicode/utf8"
},
{
"xml"
,
"encoding/xml"
},
// go.crypto sub-repository
{
"crypto/bcrypt"
,
"code.google.com/p/go.crypto/bcrypt"
},
{
"crypto/blowfish"
,
"code.google.com/p/go.crypto/blowfish"
},
{
"crypto/cast5"
,
"code.google.com/p/go.crypto/cast5"
},
{
"crypto/md4"
,
"code.google.com/p/go.crypto/md4"
},
{
"crypto/ocsp"
,
"code.google.com/p/go.crypto/ocsp"
},
{
"crypto/openpgp"
,
"code.google.com/p/go.crypto/openpgp"
},
{
"crypto/openpgp/armor"
,
"code.google.com/p/go.crypto/openpgp/armor"
},
{
"crypto/openpgp/elgamal"
,
"code.google.com/p/go.crypto/openpgp/elgamal"
},
{
"crypto/openpgp/errors"
,
"code.google.com/p/go.crypto/openpgp/errors"
},
{
"crypto/openpgp/packet"
,
"code.google.com/p/go.crypto/openpgp/packet"
},
{
"crypto/openpgp/s2k"
,
"code.google.com/p/go.crypto/openpgp/s2k"
},
{
"crypto/ripemd160"
,
"code.google.com/p/go.crypto/ripemd160"
},
{
"crypto/twofish"
,
"code.google.com/p/go.crypto/twofish"
},
{
"crypto/xtea"
,
"code.google.com/p/go.crypto/xtea"
},
{
"exp/ssh"
,
"code.google.com/p/go.crypto/ssh"
},
// go.net sub-repository
{
"net/dict"
,
"code.google.com/p/go.net/dict"
},
{
"net/websocket"
,
"code.google.com/p/go.net/websocket"
},
{
"exp/spdy"
,
"code.google.com/p/go.net/spdy"
},
// go.codereview sub-repository
{
"encoding/git85"
,
"code.google.com/p/go.codereview/git85"
},
{
"patch"
,
"code.google.com/p/go.codereview/patch"
},
}
var
go1PackageNameRenames
=
[]
struct
{
newPath
,
old
,
new
string
}{
...
...
src/cmd/gofix/go1pkgrename_test.go
View file @
b6f671b9
...
...
@@ -41,6 +41,8 @@ import (
"utf16"
"utf8"
"xml"
"crypto/bcrypt"
)
`
,
Out
:
`package main
...
...
@@ -73,6 +75,8 @@ import (
"text/template/parse"
"unicode/utf16"
"unicode/utf8"
"code.google.com/p/go.crypto/bcrypt"
)
`
,
},
...
...
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