filesystem

package
v0.0.0-...-07af6e5 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: MIT Imports: 5 Imported by: 0

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) 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