You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: file_storage_unix.go
    path of file: ./repos/scan4all/vendor/github.com/syndtr/goleveldb/leveldb/storage
    
    the code of the file until where you have to start completion: // Copyright (c) 2012, Suryandaru Triandana <syndtr@gmail.com>
// All rights 
    
func isErrInvalid(err error) bool {
	if err == os.ErrInvalid {
		return true
	}
	// Go < 1.8
	if syserr, ok := err.(*os.SyscallError); ok && syserr.Err == syscall.EINVAL {
		return true
	}
	// Go >= 1.8 returns *os.PathError instead
	if patherr, ok := err.(*os.PathError); ok && patherr.Err == syscall.EINVAL {
		return true
	}
	return false
}