• 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
..
Makefile Loading commit data...
doc.go Loading commit data...
godoc.go Loading commit data...
index.go Loading commit data...
main.go Loading commit data...
mapping.go Loading commit data...
snippet.go Loading commit data...
spec.go Loading commit data...