Standard library / net

net.ParseError.Temporary()

Deprecated error-classification method; reports false here. Prefer explicit error and timeout handling. Expected stdout: 'false\n'.

Formal Syntax & Structure

go syntaxgo
func (e *ParseError) Temporary() bool

Return 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.ParseError{Type: "IP address", Text: "bad"}).Temporary()) }
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)  }}
Go Reference