Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseFS ¶
BaseFS is our default implementation of the FS interface.
func NewBasePathFs ¶
NewBasePathFs returns a new BaseFS which wraps the given filesystem with a base path.
func NewMemMapFs ¶
func NewMemMapFs() *BaseFS
NewMemMapFs returns a new BaseFS which wraps the memory filesystem.
func NewReadOnlyFs ¶
NewReadOnlyFs returns a new BaseFS which wraps the given filesystem with a read-only filesystem.
type FallbackFS ¶
type FallbackFS struct { FS // contains filtered or unexported fields }
FallbackFS is a filesystem that layers a primary filesystem on top of a secondary filesystem.
func NewFallbackFS ¶
func NewFallbackFS(primary, secondary FS) *FallbackFS
NewFallbackFS returns a new FallbackFS instance.
func (*FallbackFS) Primary ¶
func (d *FallbackFS) Primary() *BaseFS
Primary returns the primary filesystem.
func (*FallbackFS) Secondary ¶
func (d *FallbackFS) Secondary() *BaseFS
Secondary returns the secondary filesystem.
Click to show internal directories.
Click to hide internal directories.