diff options
Diffstat (limited to 'vendor/github.com/gobuffalo/packr/file_info.go')
-rw-r--r-- | vendor/github.com/gobuffalo/packr/file_info.go | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/vendor/github.com/gobuffalo/packr/file_info.go b/vendor/github.com/gobuffalo/packr/file_info.go new file mode 100644 index 0000000..e7931d2 --- /dev/null +++ b/vendor/github.com/gobuffalo/packr/file_info.go @@ -0,0 +1,38 @@ +package packr + +import ( + "os" + "time" +) + +type fileInfo struct { + Path string + Contents []byte + size int64 + modTime time.Time + isDir bool +} + +func (f fileInfo) Name() string { + return f.Path +} + +func (f fileInfo) Size() int64 { + return f.size +} + +func (f fileInfo) Mode() os.FileMode { + return 0444 +} + +func (f fileInfo) ModTime() time.Time { + return f.modTime +} + +func (f fileInfo) IsDir() bool { + return f.isDir +} + +func (f fileInfo) Sys() interface{} { + return nil +} |