Closed Konboi closed 4 years ago
I use interfacer and it's very useful but I happen this case.
I define struct like this
package foo import ( "github.com/example/hoge" ) type Foo struct {} func (f *Foo) Hoge1() error { return nil } func (f *Foo) Hoge2() *hoge.Hoge { return &hoge.Hoge{} } func (f *Foo) Hoge3() []*hoge.Hoge { return []*hoge.Hoge{...} }
I generate interface using by interfaces like this.
interfacer -for github.com/Konboi/foo.Foo -as foo.Fooer -o foo.gen.go
but generated file is like this
package foo import ( "github.com/example/hoge" ) type Fooer interface { Hoge1() error Hoge2() *hoge.Hoge Hoge3() []*github.com/example/hoge.Hoge }
but I think it should be
package foo import ( "github.com/example/hoge" ) type Fooer interface { Hoge1() error Hoge2() *hoge.Hoge Hoge3() []*hoge.Hoge }
is it correct ??
please check it.
fixed :tada:
I use interfacer and it's very useful but I happen this case.
I define struct like this
I generate interface using by interfaces like this.
but generated file is like this
but I think it should be
is it correct ??
please check it.