Standard library / net
net.DNSConfigError.Temporary()
Always reports false for this legacy wrapper; do not rely on it for retry decisions. Synthetic legacy example. Expected stdout: 'false\n'.
Formal Syntax & Structure
go syntaxgo
func (e *DNSConfigError) Temporary() boolReturn Value
bool
Operation result; check errors and validity indicators when returned.
Working Example
Example Snippetgo
package main
import ( "errors" "fmt" "net")
func main() { e := &net.DNSConfigError{Err: errors.New("demo")}; fmt.Println(e.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) }}