This is Go 1 package renaming CL #2.
This one merely moves the source; the import strings will be
changed after the next weekly release.
exp/template/html -> html/template
big -> math/big
cmath -> math/cmplx
rand -> math/rand
syslog -> log/syslog
The only edits are in Makefiles and deps.bash.
Note that this CL moves exp/template/html out of exp. I decided
to do that so all the renamings can be done together, even though
the API (and that of template, for that matter) is still fluid.
R=r, rsc
CC=golang-dev
https://golang.org/cl/
5332053
DIRS=\
archive/tar\
archive/zip\
- big\
bufio\
bytes\
- cmath\
compress/bzip2\
compress/flate\
compress/gzip\
exp/spdy\
exp/sql\
exp/sql/driver\
- exp/template/html\
exp/types\
expvar\
flag\
hash/crc64\
hash/fnv\
html\
+ html/template\
http\
http/cgi\
http/fcgi\
io\
io/ioutil\
log\
+ log/syslog\
mail\
math\
+ math/big\
+ math/cmplx\
+ math/rand\
mime\
mime/multipart\
net\
patch\
path\
path/filepath\
- rand\
reflect\
regexp\
regexp/syntax\
sync\
sync/atomic\
syscall\
- syslog\
tabwriter\
template\
template/parse\
# Append old names of renamed packages. TODO: clean up after renaming.
dirpat="$dirpat
/^(asn1)$/
+/^(big)$/
+/^(cmath)$/
/^(csv)$/
+/^(exp\/template\/html)$/
/^(gob)$/
/^(json)$/
+/^(rand)$/
+/^(syslog)$/
/^(xml)$/
"
grep -v "^$dir\$" |
sed 's/$/.install/' |
# TODO: rename the dependencies for renamed directories. TODO: clean up after renaming.
- sed 's;^asn1.install$;encoding/asn1.install;' |
- sed 's;^csv.install$;encoding/csv.install;' |
- sed 's;^gob.install$;encoding/gob.install;' |
- sed 's;^json.install$;encoding/json.install;' |
- sed 's;^xml.install$;encoding/xml.install;' |
+ sed 's;^asn1.install$;encoding/asn1.install;
+ s;^big.install$;math/big.install;
+ s;^cmath.install$;math/cmplx.install;
+ s;^csv.install$;encoding/csv.install;
+ s;^exp/template/html.install$;html/template.install;
+ s;^gob.install$;encoding/gob.install;
+ s;^json.install$;encoding/json.install;
+ s;^syslog.install$;log/syslog.install;
+ s;^rand.install$;math/rand.install;
+ s;^xml.install$;encoding/xml.install;' |
# TODO: end of renamings.
sed 's;^C\.install;runtime/cgo.install;' |
sort -u
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include ../../../../Make.inc
+include ../../../Make.inc
TARG=exp/template/html
GOFILES=\
transition.go\
url.go\
-include ../../../../Make.pkg
+include ../../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include ../../Make.inc
+include ../../../Make.inc
TARG=syslog
GOFILES=\
syslog.go\
syslog_unix.go\
-include ../../Make.pkg
+include ../../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include ../../Make.inc
+include ../../../Make.inc
TARG=big
GOFILES=\
OFILES=\
arith_$(GOARCH).$O\
-include ../../Make.pkg
+include ../../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include ../../Make.inc
+include ../../../Make.inc
TARG=cmath
sqrt.go\
tan.go\
-include ../../Make.pkg
+include ../../../Make.pkg
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include ../../Make.inc
+include ../../../Make.inc
TARG=rand
GOFILES=\
rng.go\
zipf.go\
-include ../../Make.pkg
+include ../../../Make.pkg