Closed kliko9 closed 2 years ago
Good catch, I can reproduce this. The duplicated P is because it is a pointer of proto.APIAddress.
Fixed in v0.6.2, sadly I'm not satisfied with the solution, because it creates an allocation if the conversion errors, I've created another issue for this.
Describe the bug Generation doesn't throw any error and successfully generates invalid code.
To Reproduce
Expected behavior The generated code is missing ampersand sign.
protoPersonToPProtoAPIAddress in case of err != nil in returned value & is missing. Btw. why there's doubled P in method's name.