package
0.0.0-20200818062009-44808bf77f35
Repository: https://github.com/munbot/master.git
Documentation: pkg.go.dev

# Functions

Create opens the named file with read and write access, creates it if it does not exists already and truncates its content if it exists.
Exist checks if the named file exists on current filesystem.
Mkdir creates a new directory on current filesystem.
MkdirAll creates a new directory on current filesystem.
NewMockFilesystem returns a new mock filesystem with the supplied filenames created in the root tree (empty though), if any supplied.
Open opens the named file as read only.
OpenFile calls current fs manager OpenFile method.
ReadFile calls vfs.Open(name) and then ioutil.ReadAll.
SetFilesystem sets the fs manager to the provided one.
Stat calls current fs manager Stat method.
StatHash returns a hash string from stat information of named file.

# Variables

DefaultFilesystem is set as NativeFilesystem at init time.

# Structs

MockFile implements File interface for testing purposes mainly.
MockFilesystem implements Filesystem interface for testing purposes mainly.
NativeFilesystem it's just a wrapper for os package functions.

# Interfaces

File handler interface.
Filesystem handler interface.