Documentation
¶
Index ¶
- func CopyFromFS(root, dest string, fsys Filesystem) (err error)
- func NewMaskingFS(masked func(path string) bool, fs Filesystem) maskingFS
- func NewOsFilesystem(root string) osFilesystem
- func NewSubFS(root string, fs Filesystem) subFS
- func NewZipFS(archive *zip.Reader) zipFS
- type BillyFilesystem
- type Filesystem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyFromFS ¶
func CopyFromFS(root, dest string, fsys Filesystem) (err error)
CopyFromFS copies files from the `src` dir on the accessor Filesystem to local filesystem into `dest` dir. The src path uses slashes as their separator. The dest path uses OS specific separator.
func NewMaskingFS ¶
func NewMaskingFS(masked func(path string) bool, fs Filesystem) maskingFS
func NewOsFilesystem ¶
func NewOsFilesystem(root string) osFilesystem
func NewSubFS ¶
func NewSubFS(root string, fs Filesystem) subFS
Types ¶
type BillyFilesystem ¶
type BillyFilesystem struct {
// contains filtered or unexported fields
}
BillyFilesystem is a template file accessor backed by a billy FS
func NewBillyFilesystem ¶
func NewBillyFilesystem(fs billy.Filesystem) BillyFilesystem
Click to show internal directories.
Click to hide internal directories.