godef icon indicating copy to clipboard operation
godef copied to clipboard

Add -r for printing method receivers

Open segevfiner opened this issue 7 years ago • 3 comments

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

segevfiner avatar Dec 26 '18 01:12 segevfiner

@ramya-rao-a I will also be glad to hear what you think as we will have to parse this in vscode-go.

segevfiner avatar Dec 26 '18 22:12 segevfiner

The output looks good to me.

cc @rogpeppe @ianthehat

ramya-rao-a avatar Dec 31 '18 00:12 ramya-rao-a

ping @rogpeppe @ianthehat

segevfiner avatar Feb 04 '19 10:02 segevfiner