embeds

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyDirectory

func CopyDirectory(efs embed.FS, from string, to string) error

func CopyFile

func CopyFile(efs embed.FS, from string, to string) (err error)

func IsDirectory

func IsDirectory(efs embed.FS, n string) bool

IsDirectory checks if file exists and is a directory.

func IsFile

func IsFile(efs embed.FS, name string) bool

IsFile check if file exists and is a file.

func ReadDirectory

func ReadDirectory(efs embed.FS, from string) (entries []string, err error)

func ReadFileInChunks

func ReadFileInChunks(efs embed.FS, from string, max int, call func([]byte) error) (err error)

ReadFileInChunks reads a file in chunks of a set maximum size.

func ZipDirectory

func ZipDirectory(efs embed.FS, from string, to string) (err error)

ZipDirectory zips a directory to the disk.

func ZipFile

func ZipFile(efs embed.FS, from string, to string) (err error)

ZipFile zips a file to the disk.

Types

This section is empty.

Jump to

Keyboard shortcuts

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