Skip to content

Instantly share code, notes, and snippets.

@JohnStarich
Created February 20, 2022 05:36
Show Gist options
  • Save JohnStarich/06d194fe658bec8bffb9eca12bf296b4 to your computer and use it in GitHub Desktop.
Save JohnStarich/06d194fe658bec8bffb9eca12bf296b4 to your computer and use it in GitHub Desktop.
HackpadFS article – HackpadFS common error types
var (
ErrInvalid = syscall.EINVAL
ErrPermission = fs.ErrPermission
ErrExist = fs.ErrExist
ErrNotExist = fs.ErrNotExist
ErrClosed = fs.ErrClosed
ErrIsDir = syscall.EISDIR
ErrNotDir = syscall.ENOTDIR
ErrNotEmpty = syscall.ENOTEMPTY
ErrNotImplemented = syscall.ENOSYS
SkipDir = fs.SkipDir
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment