Versions in this module Expand all Collapse all v1 v1.1.0 May 20, 2024 v1.0.0 Aug 22, 2023 Changes in this version + const RenderStatusHide + const RenderStatusShow + var DefaultFunctions = map[string]interface + var ErrPathNotFoundFile = errors.New("path not found file") + var ErrorNotSetResourceRootPath = fmt.Errorf("not set resource root path") + func InitResourceByDir(group string, embFs embed.FS, innerScanPathList []string) error + func InitResourceGroupByLanguage(group string, embFs embed.FS, innerScanPath string, langList []string) error + func RegisterSettings(funcSettings map[string]interface{}) + func SettingResourceRootPath(root string) + type EmbedResource interface + ChangeRootPath func(root string) error + Data func() string + FileName func() string + FullPath func() string + IsDir func() bool + Lang func() string + Raw func() ([]byte, error) + RelativePath func() string + Render func(payload interface{}) (result string, err error) + RootPath func() string + func GetResourceByLanguage(group string, innerPath string, lang string) (EmbedResource, error) + func GetResourceByLanguageDefault(group string, innerPath string) (EmbedResource, error) + func GetResourceGroupByDir(group string, innerScanPath string) ([]EmbedResource, error) + func GetResourceListByLanguage(group string, innerScanPath string, lang string) ([]EmbedResource, error) + func NewEmbedResourceAsDir(root string, efs embed.FS, pathDir string, lang string, loadNow bool) ([]EmbedResource, error) + func NewEmbedResourceAsFile(root string, efs embed.FS, pathFile string, lang string, loadNow bool) (EmbedResource, error) + type LanguageResource struct + FolderMap map[string]string + Lang string