Skip to content

receiver-naming

Enforce consistent receiver names.

Updated View as Markdown

Default severity: warning

Rejects receiver names this and self, and requires every method on the same receiver type to use the same receiver name. It does not derive or enforce a particular abbreviation and does not impose a maximum length.

Bad

func (self *Client) Send() error

Good

func (c *Client) Send() error
Navigation

Type to search…

↑↓ navigate↵ selectEsc close