fileio

package
v6.6.4+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllMkdirer

type AllMkdirer interface {
	MkdirAll(dir string, perm os.FileMode) error
}

type AllRemover

type AllRemover interface {
	RemoveAll(path string) error
}

type DirReader

type DirReader interface {
	ReadDir(dirname string) ([]os.FileInfo, error)
}

type FileReader

type FileReader interface {
	ReadFile(filename string) ([]byte, error)
}

type FileWriter

type FileWriter interface {
	WriteFile(filename string, data []byte, perm os.FileMode) error
}

type Remover

type Remover interface {
	Remove(name string) error
}

type Renamer

type Renamer interface {
	Rename(oldpath, newpath string) error
}

type Stater

type Stater interface {
	Stat(name string) (os.FileInfo, error)
}

type TempDirer

type TempDirer interface {
	TempDir(dir, prefix string) (name string, err error)
}

type TempFiler

type TempFiler interface {
	TempFile(dir, prefix string) (f afero.File, err error)
}

Jump to

Keyboard shortcuts

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