filemanager

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileManager

type FileManager struct {
	CurlyBraces bool
	DryRun      bool
	// contains filtered or unexported fields
}

func Store

func Store(curlyBraces, dryRun bool) *FileManager

func (*FileManager) ReadDir

func (fm *FileManager) ReadDir(path string) ([]os.FileInfo, error)

func (*FileManager) ReadFile

func (ds *FileManager) ReadFile(key string) ([]byte, bool)

func (*FileManager) ReadFiles added in v1.0.0

func (ds *FileManager) ReadFiles(keys []string) [][]byte

func (*FileManager) Walk

func (fm *FileManager) Walk(path string) ([]string, error)

func (*FileManager) WriteFile

func (ds *FileManager) WriteFile(key string, file []byte) error

Jump to

Keyboard shortcuts

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