From 8400387d2a2acfcd41077583c1341811c2e3b987 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Sun, 16 Sep 2018 19:19:49 -0700 Subject: [PATCH] update api --- goldsmith.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/goldsmith.go b/goldsmith.go index 5ceda72..c030077 100644 --- a/goldsmith.go +++ b/goldsmith.go @@ -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, } }