• Russ Cox's avatar
    godoc: support $GOPATH, simplify file system code · fae0d350
    Russ Cox authored
    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
    fae0d350
Name
Last commit
Last update
..
5a Loading commit data...
5c Loading commit data...
5g Loading commit data...
5l Loading commit data...
6a Loading commit data...
6c Loading commit data...
6g Loading commit data...
6l Loading commit data...
8a Loading commit data...
8c Loading commit data...
8g Loading commit data...
8l Loading commit data...
addr2line Loading commit data...
api Loading commit data...
cc Loading commit data...
cgo Loading commit data...
cov Loading commit data...
dist Loading commit data...
fix Loading commit data...
gc Loading commit data...
go Loading commit data...
godoc Loading commit data...
gofmt Loading commit data...
ld Loading commit data...
nm Loading commit data...
objdump Loading commit data...
pack Loading commit data...
prof Loading commit data...
vet Loading commit data...
yacc Loading commit data...