status-go/vendor/zombiezen.com/go/sqlite/fs/fs.go

23 lines
364 B
Go
Raw Normal View History

2022-03-10 09:44:48 +00:00
// Copyright 2021 Ross Light
// SPDX-License-Identifier: ISC
// +build !go1.16
package fs
import (
"os"
)
// FS is a copy of Go 1.16's io/fs.FS interface.
type FS interface {
Open(name string) (File, error)
}
// File is a copy of Go 1.16's io/fs.File interface.
type File interface {
Stat() (os.FileInfo, error)
Read([]byte) (int, error)
Close() error
}