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