Initial commit

This commit is contained in:
Tyler
2021-02-23 21:10:44 -05:00
commit 4457d5038e
12 changed files with 1283 additions and 0 deletions

22
io.go Normal file
View File

@@ -0,0 +1,22 @@
package cv
import (
"github.com/spf13/afero"
"os"
)
type fsReader struct{
fs afero.Fs
}
func (f *fsReader) ReadFile(path string) ([]byte, error) {
return afero.ReadFile(f.fs, path)
}
type fsWriter struct {
fs afero.Fs
}
func (f *fsWriter) WriteFile(path string, data []byte, mode os.FileMode) error {
return afero.WriteFile(f.fs, path, data, mode)
}