embed

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2022 License: GPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Files embed.FS

Functions

func DirExists

func DirExists(fn string) bool

DirExists -

func DirectoryRead

func DirectoryRead(dir string, glob string) ([]string, error)

DirectoryRead -

func GetStoredFiles

func GetStoredFiles() []string

GetStoredFiles -

func IsEmpty

func IsEmpty(dir string) bool

IsEmpty -

func ReadFile

func ReadFile(fsRoot fs.FS, fn string) ([]byte, error)

ReadFile Read data from a file path.

func SaveFiles

func SaveFiles(baseDir string, force bool) error

func WriteFile

func WriteFile(fn string, data []byte, perm os.FileMode) error

WriteFile Saves data to a file path.

Types

type Storage

type Storage embed.FS

Jump to

Keyboard shortcuts

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