Documentation
¶
Overview ¶
Package timeafter defines an Analyzer that checks for the use of time.After in loops on Go versions before 1.23
Analyzer timeafter ¶
timeafter: check for use of time.After().
The underlining Timer is not recovered by the garbage collector until the timer fires.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Analyzer = &analysis.Analyzer{ Name: "timeafter", Doc: `check for "time.After" instances in loops`, URL: "https://github.com/cilium/linters", Requires: []*analysis.Analyzer{inspect.Analyzer}, Run: run, }
Analyzer implements an analysis function that checks for the use of time.After in loops.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.