pkger/fs/file.go

23 lines
398 B
Go
Raw Normal View History

2019-09-01 00:00:24 +03:00
package fs
import (
"net/http"
"os"
"github.com/markbates/pkger/here"
)
type File interface {
Close() error
FilePath() string
Info() here.Info
Name() string
Open(name string) (http.File, error)
Path() Path
Read(p []byte) (int, error)
Readdir(count int) ([]os.FileInfo, error)
Seek(offset int64, whence int) (int64, error)
Stat() (os.FileInfo, error)
Write(b []byte) (int, error)
}