• Andrei Vieru's avatar
    "godoc -src pkg_name" excludes duplicates entries · fffac807
    Andrei Vieru authored
    $ godoc xml | grep Copy\(\)
    func (c CharData) Copy() CharData
    func (c Comment) Copy() Comment
    func (d Directive) Copy() Directive
    func (p ProcInst) Copy() ProcInst
    func (e StartElement) Copy() StartElement
    --------------------------------------------
    $ godoc -src xml | grep Copy\(\)
    func (c CharData) Copy() CharData
    --------------------------------------------
    $ godoc -src xml Copy
    func (c CharData) Copy() CharData { return CharData(makeCopy(c)) }
    --------------------------------------------
    The command "godoc -src pkg_name" should output the interface of the named package, but it excludes all duplicate entries. Also the command "godoc -src pkg_name method_name" will output the source code only for one method even if there are more of them with the same name in the same package. This patch set fixes this issue.
    
    R=gri
    CC=golang-dev
    https://golang.org/cl/883051
    fffac807
Name
Last commit
Last update
doc Loading commit data...
include Loading commit data...
lib Loading commit data...
misc Loading commit data...
pkg Loading commit data...
src Loading commit data...
test Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
README Loading commit data...
favicon.ico Loading commit data...