fs.go 383 字节
Newer Older
O
ob-robot 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13
// All codes interacting with file system should be put here.
// Invoke file system operations via afero's Fs interface.
// This is convenient for mock testing.

package file

import (
	"github.com/spf13/afero"
)

// OsFs is a Fs implementation that uses functions provided by the os package.
// When in unit testing, replace this with afero.MemMapFs.
var Fs afero.Fs = afero.OsFs{}