src-d / proteus

Generate .proto files from Go source code.
https://blog.sourced.tech/post/proteus/
MIT License
735 stars 70 forks source link

rpc: remove package qualifier of generated rpc services when is not necessary #31

Closed erizocosmico closed 7 years ago

erizocosmico commented 7 years ago

Consider the following method:

package foo
func (s *FooStore) Foo(f *Foo) { /* impl */ }

This would generate:

func (s *fooServiceServer) FooStore_Foo(ctx context.Context, in *foo.Foo) (*FooStore_FooResponse, error) { /* impl */

instead of in *foo.Foo, should be in *Foo as they are in the same package