github.com/shogo82148/std@v1.22.1-0.20240327122250-4e474527810c/embed/dummy.go (about) 1 package embed 2 3 import ( 4 "github.com/shogo82148/std/io/fs" 5 "github.com/shogo82148/std/time" 6 ) 7 8 type file struct{} 9 10 func (*file) Name() string 11 func (*file) Size() int64 12 func (*file) Mode() fs.FileMode 13 func (*file) ModTime() time.Time 14 func (*file) IsDir() bool 15 func (*file) Sys() any 16 func (*file) Type() fs.FileMode 17 func (*file) Info() (fs.FileInfo, error) 18 19 type openFile struct{} 20 21 func (*openFile) Seek(offset int64, whence int) (int64, error) 22 func (*openFile) ReadAt(p []byte, off int64) (n int, err error)