Documentation
¶
Overview ¶
Package ptrparam provides a go/analysis analyzer enforcing the gomatic Go immutability standard: function parameters are passed by value, never by pointer, unless the pointed-to type is a standard-library type where a pointer is the idiomatic calling convention.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Analyzer = newAnalyzer()
Analyzer reports pointer parameters that are not idiomatic standard-library types.
View Source
var Registration = goyze.Registration{ Name: "ptrparam", Categories: []goyze.Category{"immutability"}, URL: "https://docs.gomatic.dev/yze/go/ptrparam", 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-ptrparam
command
Command yze-go-ptrparam runs the ptrparam analyzer as a standalone go/analysis checker (text, -json, and -fix output, and as a `go vet -vettool`).
|
Command yze-go-ptrparam runs the ptrparam 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.