5
vendor/zombiezen.com/go/sqlite/fs/doc.go
generated
vendored
Normal file
5
vendor/zombiezen.com/go/sqlite/fs/doc.go
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
// Copyright 2021 Ross Light
|
||||
// SPDX-License-Identifier: ISC
|
||||
|
||||
// Package fs provides a fallback for the io/fs package in Go 1.16.
|
||||
package fs
|
||||
22
vendor/zombiezen.com/go/sqlite/fs/fs.go
generated
vendored
Normal file
22
vendor/zombiezen.com/go/sqlite/fs/fs.go
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
// 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
|
||||
}
|
||||
14
vendor/zombiezen.com/go/sqlite/fs/fs_go116.go
generated
vendored
Normal file
14
vendor/zombiezen.com/go/sqlite/fs/fs_go116.go
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
// Copyright 2021 Ross Light
|
||||
// SPDX-License-Identifier: ISC
|
||||
|
||||
// +build go1.16
|
||||
|
||||
package fs
|
||||
|
||||
import "io/fs"
|
||||
|
||||
// FS is an alias for the io/fs.FS interface.
|
||||
type FS = fs.FS
|
||||
|
||||
// File is an alias for the io/fs.File interface.
|
||||
type File = fs.File
|
||||
Reference in New Issue
Block a user