Standard library / net
net.InvalidAddrError.Timeout()
Report false for this address or network classification error. Expected stdout: 'false\n'.
Formal Syntax & Structure
go syntaxgo
func (e InvalidAddrError) Timeout() boolReturn Value
bool
Operation result; check errors and validity indicators when returned.
Working Example
Example Snippetgo
package main
import ( "fmt" "net")
func main() { fmt.Println((net.InvalidAddrError("invalid address")).Timeout()) }
func must[T any](v T, e error) T { if e != nil { panic(e) } return v}func check(e error) { if e != nil { panic(e) }}