fswrite

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FSWrite

type FSWrite struct{}

func (*FSWrite) GlobRemoveAll added in v0.1.2

func (*FSWrite) GlobRemoveAll(pattern string) error

GlobRemoveAll deletes everything matching the provided pattern.

func (*FSWrite) ListRecursive added in v0.1.4

func (*FSWrite) ListRecursive(dir string) ([]string, error)

ListRecursive returns every path that can be recursively found in the provided directory.

func (*FSWrite) MkdirAll

func (*FSWrite) MkdirAll(path string, perm os.FileMode) error

MkdirAll wraps os.MkdirAll.

func (*FSWrite) RemoveAll added in v0.1.4

func (*FSWrite) RemoveAll(path string) error

RemoveAll deletes the path and any sub paths.

func (*FSWrite) WriteFile

func (*FSWrite) WriteFile(filename string, data string, perm os.FileMode) error

WriteFile wraps ioutil.WriteFile.

type FSWriteIface

type FSWriteIface interface {
	WriteFile(filename string, data string, perm os.FileMode) error
	MkdirAll(path string, perm os.FileMode) error
	GlobRemoveAll(pattern string) error
	ListRecursive(dir string) ([]string, error)
	RemoveAll(paths string) error
}

Jump to

Keyboard shortcuts

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