Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FileReaderFunc ¶
type FileReaderFunc func(path string) (io.ReadCloser, error)
var NewFileReader FileReaderFunc = func(path string) (io.ReadCloser, error) { return os.Open(path) }
type FileSeekerFunc ¶ added in v4.39.0
type FileSeekerFunc func(path string) (io.ReadSeekCloser, error)
var NewFileSeeker FileSeekerFunc = func(path string) (io.ReadSeekCloser, error) { return os.Open(path) }
type FileWriterFunc ¶ added in v4.37.2
type FileWriterFunc func(path string) (io.WriteCloser, error)
var NewFileWriter FileWriterFunc = func(path string) (io.WriteCloser, error) { return os.Create(path) }
Click to show internal directories.
Click to hide internal directories.