pkger/pkging/file.go

23 lines
411 B
Go
Raw Permalink Normal View History

2019-09-02 01:02:45 +03:00
package pkging
2019-09-01 00:00:24 +03:00
import (
"net/http"
"os"
"github.com/markbates/pkger/here"
)
type File interface {
Close() error
2019-09-01 23:18:39 +03:00
Abs() (string, error)
2019-09-01 00:00:24 +03:00
Info() here.Info
Name() string
Open(name string) (http.File, error)
2019-10-09 20:21:54 +03:00
Path() here.Path
2019-09-01 00:00:24 +03:00
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)
}