Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DefaultFS ¶
type DefaultFS struct{}
DefaultFS is the default OS implementation of FileSystem.
type FileSystem ¶
FS is abstraction for filesystem.
var FS FileSystem = DefaultFS{}
FS is the host filesystem implementation.
var FakeFS FileSystem = fakeFS{}
FakeFS is a mock FS. The following can be done in a test before usage.
osutil.FS = osutil.FakeFS
Click to show internal directories.
Click to hide internal directories.