]> Cypherpunks repositories - gostls13.git/commit
Convert go tree to hierarchical pkg directory:
authorRuss Cox <rsc@golang.org>
Fri, 17 Apr 2009 03:52:37 +0000 (20:52 -0700)
committerRuss Cox <rsc@golang.org>
Fri, 17 Apr 2009 03:52:37 +0000 (20:52 -0700)
commit1f6463f823edd3b194a85d13e5eed068f4a129ed
treefc0d1bfb34a87c27e16c2bc4978b7cf4dd7b134e
parent0f153ec6b47382f4df8f3b62acdee89208d97584
Convert go tree to hierarchical pkg directory:

import (
"vector" -> "container/vector"
"ast" -> "go/ast"
"sha1" -> "hash/sha1"
etc.
)

and update Makefiles.  Because I did the conversion
semi-automatically, I sorted all the import blocks
as a post-processing.  Some files have therefore
changed that didn't strictly need to.

Rename local packages to lower case.
The upper/lower distinction doesn't work on OS X
and complicates the "single-package directories
with the same package name as directory name"
heuristic used by gobuild and godoc to create
the correlation between source and binary locations.
Now that we have a plan to avoid globally unique
names, the upper/lower is unnecessary.

The renamings will cause trouble for a few users,
but so will the change in import paths.
This way, the two maintenance fixes are rolled into
one inconvenience.

R=r
OCL=27573
CL=27575
59 files changed:
src/lib/bufio.go
src/lib/container/Makefile
src/lib/container/intvector.go
src/lib/container/iterable.go
src/lib/container/iterable_test.go
src/lib/container/vector_test.go
src/lib/fmt/Makefile
src/lib/fmt/print.go
src/lib/go/Makefile
src/lib/go/ast.go
src/lib/go/parser.go
src/lib/go/parser_test.go
src/lib/go/scanner.go
src/lib/go/scanner_test.go
src/lib/hash/Makefile
src/lib/hash/adler32_test.go
src/lib/hash/crc32_test.go
src/lib/hash/md5_test.go
src/lib/hash/md5block.go
src/lib/hash/sha1_test.go
src/lib/hash/sha1block.go
src/lib/http/Makefile
src/lib/io/Makefile
src/lib/json/Makefile
src/lib/json/generic.go
src/lib/math/Makefile
src/lib/net/dialgoogle_test.go
src/lib/net/net.go
src/lib/net/net_darwin.go
src/lib/net/net_linux.go
src/lib/net/tcpserver_test.go
src/lib/net/timeout_test.go
src/lib/os/Makefile
src/lib/os/dir_amd64_darwin.go
src/lib/os/dir_amd64_linux.go
src/lib/reflect/Makefile
src/lib/reflect/type.go
src/lib/regexp/Makefile
src/lib/regexp/regexp.go
src/lib/strconv/Makefile
src/lib/sync/Makefile
src/lib/syscall/Makefile
src/lib/tabwriter/Makefile
src/lib/tabwriter/tabwriter.go
src/lib/tabwriter/tabwriter_test.go
src/lib/template/Makefile
src/lib/testing.go
src/lib/time/Makefile
src/lib/unicode/Makefile
test/bigalg.go
test/vectors.go
usr/gri/pretty/astprinter.go
usr/gri/pretty/compilation.go
usr/gri/pretty/docprinter.go
usr/gri/pretty/godoc.go
usr/gri/pretty/pretty.go
usr/gri/pretty/symboltable.go
usr/gri/pretty/typechecker.go
usr/gri/pretty/untab.go