1
0
mirror of https://github.com/golang/go synced 2024-11-13 15:50:22 -07:00
go/lib
Russ Cox fae0d35043 godoc: support $GOPATH, simplify file system code
The motivation for this CL is to support $GOPATH well.
Since we already have a FileSystem interface, implement a
Plan 9-style name space.  Bind each of the $GOPATH src
directories onto the $GOROOT src/pkg directory: now
everything is laid out exactly like a normal $GOROOT and
needs very little special case code.

The filter files are no longer used (by us), so I think they
can just be deleted.  Similarly, the Mapping code and the
FileSystem interface were two different ways to accomplish
the same end, so delete the Mapping code.

Within the implementation, since FileSystem is defined to be
slash-separated, use package path consistently, leaving
path/filepath only for manipulating operating system paths.

I kept the -path flag, but I think it can be deleted too.

Fixes #2234.
Fixes #3046.

R=gri, r, r, rsc
CC=golang-dev
https://golang.org/cl/5711058
2012-03-05 10:02:46 -05:00
..
codereview codereview: add submit message support for newer clone URL and subrepos 2012-02-21 16:10:48 -05:00
godoc godoc: support $GOPATH, simplify file system code 2012-03-05 10:02:46 -05:00
time lib/time/zoneinfo: delete 2012-02-19 03:19:05 -05:00