nezha/resource/resource.go
2023-11-28 23:01:37 +08:00

20 lines
261 B
Go
Vendored

package resource
import (
"embed"
)
//go:embed static
var StaticFS embed.FS
//go:embed template
var TemplateFS embed.FS
//go:embed l10n
var I18nFS embed.FS
func IsTemplateFileExist(name string) bool {
_, err := TemplateFS.Open(name)
return err == nil
}