fs

package
Version: v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(name string) (afero.File, error)

func Exists

func Exists(path string) (bool, error)

func GetFs

func GetFs() afero.Fs

func MkdirAllPath added in v0.5.0

func MkdirAllPath(path string) error

func ReadFile

func ReadFile(filename string) ([]byte, error)

func SetMemFs

func SetMemFs()

func SetOsFs

func SetOsFs()

func WithTestFs

func WithTestFs(block func())

func WithTestFsValue

func WithTestFsValue(block func() interface{}) interface{}

func WriteFile

func WriteFile(filename string, data []byte, perm os.FileMode) error

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

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