# Functions
GetResourceByLanguage this method will check lang and parent dir if not found will use default lang with GetResourceByLanguageDefault
group: resource group, most of the use path of resource folder innerPath: inner path of resource folder lang: language as i18n
return EmbedResource.
No description provided by the author
No description provided by the author
No description provided by the author
InitResourceByDir this function only load first folder then bind second file as EmbedResource list
group: resource group, most of the use path of resource folder embFs: embed.FS some as group package by go:embed innerScanPath: inner scan path, will use "" will scan group current path.
InitResourceGroupByLanguage
group: resource group, most of the use path of resource folder embFs: embed.FS some as group package by go:embed innerScanPath: inner scan path, will use "" will scan group current path langList: lang load list.
NewEmbedResourceAsDir warning: will load file content to memory
loadNow: true will load to memory struct.
NewEmbedResourceAsFile warning: will load file content to memory
loadNow: true will load to memory struct.
RegisterSettings most of this can use embed_source.RegisterSettings(DefaultFunctions).
Render parses and executes a template, returning the results in string format.
No description provided by the author
# Constants
No description provided by the author
No description provided by the author
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
# Interfaces
No description provided by the author