• Rob Pike's avatar
    cmd/doc: if no top-level symbols match, look for methods · 9de28cf5
    Rob Pike authored
    Improving the usability further.
    
    Before:
    
    $ go doc bytes.Read
    doc: symbol Read not present in package bytes installed in "bytes"
    $
    
    After:
    $ go doc bytes.Read
    func (b *Buffer) Read(p []byte) (n int, err error)
        Read reads the next len(p) bytes from the buffer or until the buffer is drained.
        The return value n is the number of bytes read. If the buffer has no data to
        return, err is io.EOF (unless len(p) is zero); otherwise it is nil.
    func (r *Reader) Read(b []byte) (n int, err error)
    $
    
    Change-Id: I646511fada138bd09e9b39820da01a5ccef4a90f
    Reviewed-on: https://go-review.googlesource.com/9656Reviewed-by: 's avatarRuss Cox <rsc@golang.org>
    9de28cf5
Name
Last commit
Last update
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...