assets

package
v0.0.0-...-a33f2fb Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2023 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFileByName

func GetFileByName(embeddedFS embed.FS, fileName string) []byte

GetFileByName retrieves a file's content by name from the provided embedded file system. If the file is not found, it returns an error.

func ListFiles

func ListFiles(embeddedFS embed.FS) []string

ListFiles returns a list of FileInfo for all files in the provided embedded file system.

Types

This section is empty.

Jump to

Keyboard shortcuts

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