Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
xOS authored Feb 8, 2024
1 parent 8e5fb59 commit 17986d1
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions resource/resource.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
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
}

0 comments on commit 17986d1

Please sign in to comment.