We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aad3139 commit 2c8004dCopy full SHA for 2c8004d
fileutil/fileutil.go
@@ -7,6 +7,7 @@ import (
7
8
// FileManager ...
9
type FileManager interface {
10
+ Open(path string) (*os.File, error)
11
Remove(path string) error
12
RemoveAll(path string) error
13
Write(path string, value string, perm os.FileMode) error
@@ -21,6 +22,11 @@ func NewFileManager() FileManager {
21
22
return fileManager{}
23
}
24
25
+// Open ...
26
+func (fileManager) Open(path string) (*os.File, error) {
27
+ return os.Open(path)
28
+}
29
+
30
// Remove ...
31
func (fileManager) Remove(path string) error {
32
return os.Remove(path)
0 commit comments