Descriptiongodoc: 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 issue 2234.
Fixes issue 3046.
Patch Set 1 #Patch Set 2 : diff -r 60df364bae52 https://go.googlecode.com/hg/ #
Total comments: 7
Patch Set 3 : diff -r ab23f67d6786 https://go.googlecode.com/hg/ #Patch Set 4 : diff -r ab23f67d6786 https://go.googlecode.com/hg/ #Patch Set 5 : diff -r 54f0be418491 https://code.google.com/p/go/ #Patch Set 6 : diff -r 54f0be418491 https://code.google.com/p/go/ #
Total comments: 6
Patch Set 7 : diff -r 54f0be418491 https://code.google.com/p/go/ #Patch Set 8 : diff -r 54f0be418491 https://code.google.com/p/go/ #Patch Set 9 : diff -r 54f0be418491 https://code.google.com/p/go/ #
Total comments: 15
Patch Set 10 : diff -r 85bd2ea73846 https://code.google.com/p/go/ #Patch Set 11 : diff -r 85bd2ea73846 https://code.google.com/p/go/ #Patch Set 12 : diff -r 8d4fd582202b https://go.googlecode.com/hg/ #
MessagesTotal messages: 15
|