Descriptioncmd/godoc: handle file name arguments better
This change prints a warning/suggestion if the user refers to the
directory "foo" when it should be the relative path "./foo".
Furthermore, it discovers if "./foo" resides under an GOPATH or GOROOT
and displays the correct import path. For example,
cd $GOROOT/src/pkg/archive
godoc ./zip
will display the docs for "archive/zip" with the correct import path.
Fixes issue 4330.
Patch Set 1 #Patch Set 2 : diff -r e379fdfeb87e https://code.google.com/p/go #Patch Set 3 : diff -r e379fdfeb87e https://code.google.com/p/go #Patch Set 4 : diff -r a55bd9f21507 https://code.google.com/p/go #Patch Set 5 : diff -r a55bd9f21507 https://code.google.com/p/go #Patch Set 6 : diff -r dff6e212f5cb https://code.google.com/p/go #
Total comments: 5
MessagesTotal messages: 12
|