Documentation ¶
Overview ¶
Package recheck provides a static checker for regular expressions
`receck` examines called to `regexp.*Compile*` and if the regular expression is a literal string - will check that it's valid.
`recheck` will also examine lines that have a comment in the following format:
r.HandleFunc("/articles/{category}/{id:[0-9]+}", handler) // recheck:0
Then number after "recheck:" is the argument to check (first one in this case)
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Analyzer = &analysis.Analyzer{
Name: "recheck",
Doc: "Validate regular expressions",
Run: run,
}
Analyzer a regular expression analyzer
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.