filesystem

package
v5.17.0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: MIT Imports: 5 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NewFileReader fsifce.FileReaderFunc = func(path string) (io.ReadCloser, error) {
	return os.Open(path)
}
View Source
var NewFileSeeker fsifce.FileSeekerFunc = func(path string) (io.ReadSeekCloser, error) {
	return os.Open(path)
}
View Source
var NewFileWriter fsifce.FileWriterFunc = func(path string) (io.WriteCloser, error) {
	return os.Create(path)
}

Functions

func CopyFile

func CopyFile(dst string, src string, perm os.FileMode) error

func ReadAsset

func ReadAsset(file string) ([]byte, error)

func ReadFile

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

func WriteFile

func WriteFile(path string, payload []byte) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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