Documentation
¶
Index ¶
- func CopyDirectory(efs embed.FS, from string, to string) error
- func CopyFile(efs embed.FS, from string, to string) (err error)
- func IsDirectory(efs embed.FS, n string) bool
- func IsFile(efs embed.FS, name string) bool
- func ReadDirectory(efs embed.FS, from string) (entries []string, err error)
- func ReadFileInChunks(efs embed.FS, from string, max int, call func([]byte) error) (err error)
- func ZipDirectory(efs embed.FS, from string, to string) (err error)
- func ZipFile(efs embed.FS, from string, to string) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsDirectory ¶
IsDirectory checks if file exists and is a directory.
func ReadFileInChunks ¶
ReadFileInChunks reads a file in chunks of a set maximum size.
func ZipDirectory ¶
ZipDirectory zips a directory to the disk.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.