Documentation
¶
Overview ¶
Package ptrrecv provides a go/analysis analyzer enforcing the gomatic Go immutability standard: methods use value receivers, never pointer receivers, unless the receiver type transitively contains a field that cannot be copied (a sync primitive, atomic, buffer, or builder).
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Analyzer = newAnalyzer()
Analyzer reports pointer-receiver methods on types that need no pointer.
View Source
var Registration = goyze.Registration{ Name: "ptrrecv", Categories: []goyze.Category{"immutability"}, URL: "https://docs.gomatic.dev/yze/ptrrecv", Analyzer: Analyzer, }
Registration declares this analyzer to the yze framework.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
yze-go-ptrrecv
command
Command yze-go-ptrrecv runs the ptrrecv analyzer as a standalone go/analysis checker (text, -json, and -fix output, and as a `go vet -vettool`).
|
Command yze-go-ptrrecv runs the ptrrecv analyzer as a standalone go/analysis checker (text, -json, and -fix output, and as a `go vet -vettool`). |
Click to show internal directories.
Click to hide internal directories.