Golang - Naming conventions for proto generated types

195 Views Asked by At

When using protogen, the auto-generated code names all the function receivers x: func (x VarName) FunctionName reutn {.

This brought up the following discussion in one of our code reviews:

github comment

In Dave Cheney Practical Go, he has the following point on Golang receiver names:

practical go example

The main question is whether other people who add functionality to proto generated types continue using the x receiver or use something more semantic?

0

There are 0 best solutions below