Guest User

Untitled

a guest
Feb 23rd, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. // PathError records an error and the operation and file path that caused it.
  2. type PathError struct {
  3. Op string // "open", "unlink", etc.
  4. Path string // The associated file.
  5. Err error // Returned by the system call.
  6. }
  7.  
  8. func (e *PathError) String() string {
  9. return e.Op + " " + e.Path + ": "+ e.Err.Error()
  10. }
Add Comment
Please, Sign In to add comment