Resources

Table of contents

Utils for managing resources in the application

func AddEmbedResources(fs *embed.FS)

Add embedded resources to the list of app resources

func AddTheme(theme Theme)

Adds theme to application

func AllImageResources() []string

Returns the list of all image resources

func AllRawResources() []string

Returns the list of all raw resources

func GetString(tag, lang string) (string, bool)

Returns the text for the language which is defined by "lang" parameter

func OpenRawResource(filename string) fs.File

Find and open raw resource file by name and return its interface

func ReadRawResource(filename string) []byte

Returns the contents of the raw resource file with the specified name

func SetResourcePath(path string)

Set path of the resource directory. Can be used to set an additional folder where resources are located for application