1
0
mirror of https://github.com/golang/go synced 2024-11-20 05:34:40 -07:00

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

View File

@ -29,6 +29,7 @@ dirpat="$dirpat
/^(big)$/ /^(big)$/
/^(cmath)$/ /^(cmath)$/
/^(csv)$/ /^(csv)$/
/^(exec)$/
/^(exp\/template\/html)$/ /^(exp\/template\/html)$/
/^(gob)$/ /^(gob)$/
/^(http)/ /^(http)/
@ -40,9 +41,15 @@ dirpat="$dirpat
/^(mail)$/ /^(mail)$/
/^(rand)$/ /^(rand)$/
/^(rpc)$/ /^(rpc)$/
/^(scanner)$/
/^(smtp)$/ /^(smtp)$/
/^(syslog)$/ /^(syslog)$/
/^(tabwriter)$/
/^(url)$/ /^(url)$/
/^(template)$/
/^(template\/parse)$/
/^(utf16)$/
/^(utf8)$/
/^(xml)$/ /^(xml)$/
" "
@ -67,6 +74,7 @@ for dir in $dirs; do (
s;^big.install$;math/big.install; s;^big.install$;math/big.install;
s;^cmath.install$;math/cmplx.install; s;^cmath.install$;math/cmplx.install;
s;^csv.install$;encoding/csv.install; s;^csv.install$;encoding/csv.install;
s;^exec.install$;os/exec.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.install$;net/http.install;
@ -78,10 +86,16 @@ for dir in $dirs; do (
s;^mail.install$;net/mail.install; s;^mail.install$;net/mail.install;
s;^rpc.install$;net/rpc.install; s;^rpc.install$;net/rpc.install;
s;^rpc/jsonrpc.install$;net/rpc/jsonrpc.install; s;^rpc/jsonrpc.install$;net/rpc/jsonrpc.install;
s;^scanner.install$;text/scanner.install;
s;^smtp.install$;net/smtp.install; s;^smtp.install$;net/smtp.install;
s;^syslog.install$;log/syslog.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;^rand.install$;math/rand.install;
s;^url.install$;net/url.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;' | 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=exec TARG=exec
GOFILES=\ GOFILES=\
@ -28,4 +28,4 @@ GOFILES_plan9=\
GOFILES+=$(GOFILES_$(GOOS)) 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 # 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=scanner TARG=scanner
GOFILES=\ GOFILES=\
scanner.go\ 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 # 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=tabwriter TARG=tabwriter
GOFILES=\ GOFILES=\
tabwriter.go\ 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 # 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=template TARG=template
GOFILES=\ GOFILES=\
@ -13,4 +13,4 @@ GOFILES=\
parse.go\ parse.go\
set.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 # 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=template/parse TARG=template/parse
GOFILES=\ GOFILES=\
@ -11,4 +11,4 @@ GOFILES=\
parse.go\ parse.go\
set.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 # 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=utf16 TARG=utf16
GOFILES=\ GOFILES=\
utf16.go\ 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 # 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=utf8 TARG=utf8
GOFILES=\ GOFILES=\
string.go\ string.go\
utf8.go\ utf8.go\
include ../../Make.pkg include ../../../Make.pkg