...
Package httpmux
Constants
const Doc = `report using Go 1.22 enhanced ServeMux patterns in older Go versions
The httpmux analysis is active for Go modules configured to run with Go 1.21 or
earlier versions. It reports calls to net/http.ServeMux.Handle and HandleFunc
methods whose patterns use features added in Go 1.22, like HTTP methods (such as
"GET") and wildcards. (See https://pkg.go.dev/net/http#ServeMux for details.)
Such patterns can be registered in older versions of Go, but will not behave as expected.`
Variables
var Analyzer = &analysis.Analyzer{
Name: "httpmux",
Doc: Doc,
URL: "https://pkg.go.dev/golang.org/x/tools/go/analysis/passes/httpmux",
Requires: []*analysis.Analyzer{inspect.Analyzer},
Run: run,
}
Subdirectories
Name |
Synopsis |
.. |
cmd
|
|
httpmux
|
The httpmux command runs the httpmux analyzer.
|