Standard library / net/http/httputil

httputil.ErrPersistEOF

Deprecated persistent-connection sentinel; a valid final message may accompany it. Demonstrates identity only, not a triggered error path. Expected stdout: 'true\n'.

Formal Syntax & Structure

go syntaxgo
var ErrPersistEOF *http.ProtocolError

Working Example

Example Snippetgo
package main
import (  "errors"  "fmt"  "net/http/httputil")
func main() {  var err error = httputil.ErrPersistEOF  fmt.Println(errors.Is(err, httputil.ErrPersistEOF))}
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