1
0
mirror of https://github.com/golang/go synced 2024-11-20 02:54:39 -07:00

net: renamings

This is Go 1 package renaming CL #3.
This one merely moves the source; the import strings will be
changed after the next weekly release.
This one moves pieces into net.

http -> net/http
http/cgi -> net/http/cgi
http/fcgi -> net/http/fcgi
http/pprof -> net/http/pprof
http/httptest -> net/http/httptest
mail -> net/mail
rpc -> net/rpc
rpc/jsonrpc -> net/rpc/jsonrpc
smtp -> net/smtp
url -> net/url

Also remove rand (now math/rand) from NOTEST - it has a test.

The only edits are in Makefiles and deps.bash.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5335048
This commit is contained in:
Rob Pike 2011-11-03 13:26:43 -07:00
parent 5cb4a15320
commit de03d502c7
79 changed files with 57 additions and 39 deletions

View File

@ -105,11 +105,6 @@ DIRS=\
hash/fnv\ hash/fnv\
html\ html\
html/template\ html/template\
http\
http/cgi\
http/fcgi\
http/pprof\
http/httptest\
image\ image\
image/bmp\ image/bmp\
image/color\ image/color\
@ -124,7 +119,6 @@ DIRS=\
io/ioutil\ io/ioutil\
log\ log\
log/syslog\ log/syslog\
mail\
math\ math\
math/big\ math/big\
math/cmplx\ math/cmplx\
@ -133,7 +127,17 @@ DIRS=\
mime/multipart\ mime/multipart\
net\ net\
net/dict\ net/dict\
net/http\
net/http/cgi\
net/http/fcgi\
net/mail\
net/http/pprof\
net/http/httptest\
net/rpc\
net/rpc/jsonrpc\
net/smtp\
net/textproto\ net/textproto\
net/url\
old/netchan\ old/netchan\
old/regexp\ old/regexp\
old/template\ old/template\
@ -146,14 +150,11 @@ DIRS=\
reflect\ reflect\
regexp\ regexp\
regexp/syntax\ regexp/syntax\
rpc\
rpc/jsonrpc\
runtime\ runtime\
runtime/cgo\ runtime/cgo\
runtime/debug\ runtime/debug\
runtime/pprof\ runtime/pprof\
scanner\ scanner\
smtp\
sort\ sort\
strconv\ strconv\
strings\ strings\
@ -169,7 +170,6 @@ DIRS=\
testing/script\ testing/script\
time\ time\
unicode\ unicode\
url\
utf16\ utf16\
utf8\ utf8\
websocket\ websocket\
@ -205,13 +205,12 @@ NOTEST+=\
exp/gui/x11\ exp/gui/x11\
go/doc\ go/doc\
hash\ hash\
http/pprof\
http/httptest\
image/bmp\ image/bmp\
image/color\ image/color\
image/gif\ image/gif\
net/dict\ net/dict\
rand\ net/http/pprof\
net/http/httptest\
runtime/cgo\ runtime/cgo\
syscall\ syscall\
testing\ testing\

View File

@ -31,9 +31,18 @@ dirpat="$dirpat
/^(csv)$/ /^(csv)$/
/^(exp\/template\/html)$/ /^(exp\/template\/html)$/
/^(gob)$/ /^(gob)$/
/^(http)/
/^(http\/cgi)$/
/^(http\/fcgi)$/
/^(http\/httptest)$/
/^(http\/pprof)$/
/^(json)$/ /^(json)$/
/^(mail)$/
/^(rand)$/ /^(rand)$/
/^(rpc)$/
/^(smtp)$/
/^(syslog)$/ /^(syslog)$/
/^(url)$/
/^(xml)$/ /^(xml)$/
" "
@ -60,9 +69,19 @@ for dir in $dirs; do (
s;^csv.install$;encoding/csv.install; s;^csv.install$;encoding/csv.install;
s;^exp/template/html.install$;html/template.install; s;^exp/template/html.install$;html/template.install;
s;^gob.install$;encoding/gob.install; s;^gob.install$;encoding/gob.install;
s;^http.install$;net/http.install;
s;^http/cgi.install$;net/http/cgi.install;
s;^http/fcgi.install$;net/http/fcgi.install;
s;^http/httptest.install$;net/http/httptest.install;
s;^http/pprof.install$;net/http/pprof.install;
s;^json.install$;encoding/json.install; s;^json.install$;encoding/json.install;
s;^mail.install$;net/mail.install;
s;^rpc.install$;net/rpc.install;
s;^rpc/jsonrpc.install$;net/rpc/jsonrpc.install;
s;^smtp.install$;net/smtp.install;
s;^syslog.install$;log/syslog.install; s;^syslog.install$;log/syslog.install;
s;^rand.install$;math/rand.install; s;^rand.install$;math/rand.install;
s;^url.install$;net/url.install;
s;^xml.install$;encoding/xml.install;' | s;^xml.install$;encoding/xml.install;' |
# TODO: end of renamings. # TODO: end of renamings.
sed 's;^C\.install;runtime/cgo.install;' | sed 's;^C\.install;runtime/cgo.install;' |

View File

@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style # Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file. # license that can be found in the LICENSE file.
include ../../Make.inc include ../../../Make.inc
TARG=http TARG=http
GOFILES=\ GOFILES=\
@ -29,4 +29,4 @@ GOFILES_windows=\
GOFILES+=$(GOFILES_$(GOOS)) GOFILES+=$(GOFILES_$(GOOS))
include ../../Make.pkg include ../../../Make.pkg

View File

@ -2,10 +2,11 @@
# Use of this source code is governed by a BSD-style # Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file. # license that can be found in the LICENSE file.
include ../../Make.inc include ../../../../Make.inc
TARG=mail TARG=http/cgi
GOFILES=\ GOFILES=\
message.go\ child.go\
host.go\
include ../../Make.pkg include ../../../../Make.pkg

View File

@ -2,11 +2,11 @@
# Use of this source code is governed by a BSD-style # Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file. # license that can be found in the LICENSE file.
include ../../../Make.inc include ../../../../Make.inc
TARG=http/fcgi TARG=http/fcgi
GOFILES=\ GOFILES=\
child.go\ child.go\
fcgi.go\ fcgi.go\
include ../../../Make.pkg include ../../../../Make.pkg

View File

@ -2,11 +2,11 @@
# Use of this source code is governed by a BSD-style # Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file. # license that can be found in the LICENSE file.
include ../../../Make.inc include ../../../../Make.inc
TARG=http/httptest TARG=http/httptest
GOFILES=\ GOFILES=\
recorder.go\ recorder.go\
server.go\ server.go\
include ../../../Make.pkg include ../../../../Make.pkg

View File

@ -2,11 +2,10 @@
# Use of this source code is governed by a BSD-style # Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file. # license that can be found in the LICENSE file.
include ../../Make.inc include ../../../../Make.inc
TARG=smtp TARG=http/pprof
GOFILES=\ GOFILES=\
auth.go\ pprof.go\
smtp.go\
include ../../Make.pkg include ../../../../Make.pkg

View File

@ -4,9 +4,8 @@
include ../../../Make.inc include ../../../Make.inc
TARG=http/cgi TARG=mail
GOFILES=\ GOFILES=\
child.go\ message.go\
host.go\
include ../../../Make.pkg include ../../../Make.pkg

View File

@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style # Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file. # license that can be found in the LICENSE file.
include ../../Make.inc include ../../../Make.inc
TARG=rpc TARG=rpc
GOFILES=\ GOFILES=\
@ -10,4 +10,4 @@ GOFILES=\
debug.go\ debug.go\
server.go\ server.go\
include ../../Make.pkg include ../../../Make.pkg

View File

@ -2,11 +2,11 @@
# Use of this source code is governed by a BSD-style # Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file. # license that can be found in the LICENSE file.
include ../../../Make.inc include ../../../../Make.inc
TARG=rpc/jsonrpc TARG=rpc/jsonrpc
GOFILES=\ GOFILES=\
client.go\ client.go\
server.go\ server.go\
include ../../../Make.pkg include ../../../../Make.pkg

View File

@ -4,8 +4,9 @@
include ../../../Make.inc include ../../../Make.inc
TARG=http/pprof TARG=smtp
GOFILES=\ GOFILES=\
pprof.go\ auth.go\
smtp.go\
include ../../../Make.pkg include ../../../Make.pkg

View File

@ -2,10 +2,10 @@
# Use of this source code is governed by a BSD-style # Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file. # license that can be found in the LICENSE file.
include ../../Make.inc include ../../../Make.inc
TARG=url TARG=url
GOFILES=\ GOFILES=\
url.go\ url.go\
include ../../Make.pkg include ../../../Make.pkg