receiver name should not be an underscore, omit the name if it is unused
142 panic("implement me")
143}
144
145func (_ *Validator) SubmitAttestations(_ context.Context, _ primitives.Slot, _ [][48]byte, _ []*ethpb.AttestationData) {146 panic("implement me")
147}
148
Description
The name of a method's receiver should be a reflection of its identity; often a one or two letter abbreviation of its type suffices (such as "c" or "cl" for "Client").
Don't use generic names such as "me", "this" or "self", identifiers typical of object-oriented languages that place more emphasis on methods as opposed to functions. The name need not be as descriptive as that of a method argument, as its role is obvious and serves no documentary purpose. It can be very short as it will appear on almost every line of every method of the type; familiarity admits brevity. Be consistent, too: if you call the receiver "c" in one method, don't call it "cl" in another.
Bad practice
type something int
func (this something) foo() {}
Recommended
type something int
func (s something) foo() {}