update api

This commit is contained in:
Alex Yatskov 2018-09-16 19:19:49 -07:00
parent 3cacaaad10
commit 8400387d2a

View File

@ -39,13 +39,13 @@ type File interface {
Seek(offset int64, whence int) (int64, error)
}
func NewFileFromData(path string, data []byte) File {
func NewFileFromData(path string, data []byte, modTime time.Time) File {
return &file{
path: path,
Meta: make(map[string]interface{}),
reader: bytes.NewReader(data),
size: int64(len(data)),
modTime: time.Now(),
modTime: modTime,
}
}