Documentation
¶
Overview ¶
Package sprintferrdot implements a Go analysis linter that flags redundant .Error() calls on error values passed to fmt format functions.
When an error is formatted with %s or %v, the fmt package calls .Error() automatically, so calling .Error() explicitly before passing the value to the format function is redundant.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Analyzer = analyzerutil.New("sprintferrdot", "reports redundant .Error() calls on error arguments passed to fmt format functions", run)
Analyzer is the sprintf-err-dot analysis pass.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.