neterr.go raw

   1  // Package neterr defines interfaces for network error handling.
   2  package neterr
   3  
   4  // TimeoutError is an interface for errors that can indicate a timeout.
   5  // This is compatible with net.Error's Timeout() method.
   6  type TimeoutError interface {
   7  	Timeout() bool
   8  }
   9