mirror of
https://github.com/nezhahq/nezha.git
synced 2025-01-22 20:58:14 -05:00
20 lines
261 B
Go
Vendored
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
|
|
}
|