Standard library / io/fs
fs.PathError.Timeout()
Reports whether underlying error has a Timeout method returning true. Expected stdout: 'false\n'.
Formal Syntax & Structure
go syntaxgo
func (e *PathError) Timeout() boolReturn Value
bool
Reports whether underlying error has a Timeout method returning true.
Working Example
Example Snippetgo
package main
import ( "fmt" "io/fs")
func main() { e := &fs.PathError{Op: "open", Path: "x", Err: fs.ErrNotExist}; fmt.Println(e.Timeout()) }