Mixed value and pointer receivers

Last modified: Last modified: 18 September 2025

Reports structures with methods that use a mixture of types: value and pointer receivers. Such usage is not recommended by the Go Documentation.

For more information, refer to Should I define methods on values or pointers? in the Go FAQ.

Example:

Inspection ID: GoMixedReceiverTypes