filetree

package
v0.0.0-...-e86b184 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 13, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileTree

type FileTree interface {
	Close() error
	Walk(root string, f WalkFunc) error
}

func Memory

func Memory(files map[string]string) FileTree

Memory returns a memory file system with the given files. This file tree type is meant to be used in tests.

func New

func New(path string) FileTree

New returns a file tree under a plain directory. The specified path is the path to the directory which should be walked.

func Zip

func Zip(filename string) (FileTree, error)

type WalkFunc

type WalkFunc func(path string, r io.Reader) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL