package hostport
import "golang.org/x/tools/go/analysis/passes/hostport"
Package hostport defines an analyzer for calls to net.Dial with addresses of the form "%s:%d" or "%s:%s", which work only with IPv4.
Index ¶
Constants ¶
const Doc = "" /* 561 byte string literal not displayed */
Variables ¶
var Analyzer = &analysis.Analyzer{ Name: "hostport", Doc: Doc, URL: "https://pkg.go.dev/golang.org/x/tools/go/analysis/passes/hostport", Requires: []*analysis.Analyzer{inspect.Analyzer, typeindexanalyzer.Analyzer}, Run: run, }
Source Files ¶
hostport.go
- Version
- v0.33.0 (latest)
- Published
- May 5, 2025
- Platform
- linux/amd64
- Imports
- 9 packages
- Last checked
- 16 minutes ago –
Tools for package owners.