godef
godef copied to clipboard
Add -r for printing method receivers
Please consider if the format I'm printing these is OK:
foo.go:
package main
type Foo struct{}
func (f *Foo) bar() {
}
Running godef:
$ godef -t -r -f foo.go -o 52
foo.go:5:15
bar (*Foo) func()
Fixes #93 See: https://github.com/Microsoft/vscode-go/issues/2107
@ramya-rao-a I will also be glad to hear what you think as we will have to parse this in vscode-go.
The output looks good to me.
cc @rogpeppe @ianthehat
ping @rogpeppe @ianthehat