os,text,unicode: renamings

This is Go 1 package renaming CL #4.
This one merely moves the source; the import strings will be
changed after the next weekly release.
This one moves pieces into os, text, and unicode.

exec -> os/exec
scanner -> text/scanner
tabwriter -> text/tabwriter
template -> text/template
template/parse -> text/template/parse
utf16 -> unicode/utf16
utf8 -> unicode/utf8

This should be the last of the source-rearranging CLs.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5331066
This commit is contained in:
Rob Pike 2011-11-03 14:18:06 -07:00
parent eb1717e035
commit 37d82c8520
43 changed files with 35 additions and 21 deletions

View File

@ -77,7 +77,6 @@ DIRS=\
encoding/pem\
encoding/xml\
errors\
exec\
exp/ebnf\
exp/ebnflint\
exp/gotype\
@ -142,6 +141,7 @@ DIRS=\
old/regexp\
old/template\
os\
os/exec\
os/signal\
os/user\
patch\
@ -154,24 +154,24 @@ DIRS=\
runtime/cgo\
runtime/debug\
runtime/pprof\
scanner\
sort\
strconv\
strings\
sync\
sync/atomic\
syscall\
tabwriter\
template\
template/parse\
testing\
testing/iotest\
testing/quick\
testing/script\
text/scanner\
text/tabwriter\
text/template\
text/template/parse\
time\
unicode\
utf16\
utf8\
unicode/utf16\
unicode/utf8\
websocket\
../cmd/cgo\
../cmd/godoc\

View File

@ -29,6 +29,7 @@ dirpat="$dirpat
/^(big)$/
/^(cmath)$/
/^(csv)$/
/^(exec)$/
/^(exp\/template\/html)$/
/^(gob)$/
/^(http)/
@ -40,9 +41,15 @@ dirpat="$dirpat
/^(mail)$/
/^(rand)$/
/^(rpc)$/
/^(scanner)$/
/^(smtp)$/
/^(syslog)$/
/^(tabwriter)$/
/^(url)$/
/^(template)$/
/^(template\/parse)$/
/^(utf16)$/
/^(utf8)$/
/^(xml)$/
"
@ -67,6 +74,7 @@ for dir in $dirs; do (
s;^big.install$;math/big.install;
s;^cmath.install$;math/cmplx.install;
s;^csv.install$;encoding/csv.install;
s;^exec.install$;os/exec.install;
s;^exp/template/html.install$;html/template.install;
s;^gob.install$;encoding/gob.install;
s;^http.install$;net/http.install;
@ -78,10 +86,16 @@ for dir in $dirs; do (
s;^mail.install$;net/mail.install;
s;^rpc.install$;net/rpc.install;
s;^rpc/jsonrpc.install$;net/rpc/jsonrpc.install;
s;^scanner.install$;text/scanner.install;
s;^smtp.install$;net/smtp.install;
s;^syslog.install$;log/syslog.install;
s;^tabwriter.install$;text/tabwriter.install;
s;^template.install$;text/template.install;
s;^template/parse.install$;text/template/parse.install;
s;^rand.install$;math/rand.install;
s;^url.install$;net/url.install;
s;^utf16.install$;unicode/utf16.install;
s;^utf8.install$;unicode/utf8.install;
s;^xml.install$;encoding/xml.install;' |
# TODO: end of renamings.
sed 's;^C\.install;runtime/cgo.install;' |

View File

@ -2,7 +2,7 @@
# 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=exec
GOFILES=\
@ -28,4 +28,4 @@ GOFILES_plan9=\
GOFILES+=$(GOFILES_$(GOOS))
include ../../Make.pkg
include ../../../Make.pkg

View File

@ -2,10 +2,10 @@
# 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=scanner
GOFILES=\
scanner.go\
include ../../Make.pkg
include ../../../Make.pkg

View File

@ -2,10 +2,10 @@
# 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=tabwriter
GOFILES=\
tabwriter.go\
include ../../Make.pkg
include ../../../Make.pkg

View File

@ -2,7 +2,7 @@
# 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=template
GOFILES=\
@ -13,4 +13,4 @@ GOFILES=\
parse.go\
set.go\
include ../../Make.pkg
include ../../../Make.pkg

View File

@ -2,7 +2,7 @@
# 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=template/parse
GOFILES=\
@ -11,4 +11,4 @@ GOFILES=\
parse.go\
set.go\
include ../../../Make.pkg
include ../../../../Make.pkg

View File

@ -2,10 +2,10 @@
# 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=utf16
GOFILES=\
utf16.go\
include ../../Make.pkg
include ../../../Make.pkg

View File

@ -2,11 +2,11 @@
# 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=utf8
GOFILES=\
string.go\
utf8.go\
include ../../Make.pkg
include ../../../Make.pkg