vfs: add ECLOSED and tidy errors

This commit is contained in:
Nick Craig-Wood
2017-11-03 11:35:36 +00:00
parent 22ee839d05
commit 2083ac6e2a
10 changed files with 47 additions and 17 deletions

10
vfs/errors_old.go Normal file
View File

@@ -0,0 +1,10 @@
// Errors for pre go1.8
//+build !go1.8
package vfs
import "errors"
// ECLOSED is returned when a handle is closed twice
var ECLOSED = errors.New("file already closed")