提交 bd817ea8 编写于 作者: J Josh Fyne

Put path back into a file

上级 e8ba09d0
......@@ -27,7 +27,12 @@ func OpenFile(filename string) (*File, error) {
return nil, err
}
defer file.Close()
return OpenReader(file)
f, err := OpenReader(file)
if err != nil {
return nil, err
}
f.Path = filename
return f, nil
}
// OpenReader take an io.Reader and return a populated XLSX file.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册