nezha/resource/resource.go

20 lines
261 B
Go
Raw Normal View History

2023-11-28 10:01:37 -05:00
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
}