Files
threshold/plugins/host/assets.go
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
302 B
Go
Raw Normal View History

package host_plugin_assets
import (
"embed"
"io/fs"
)
const contentDir = "assets"
// content is our static web server content.
//go:embed assets
var content embed.FS
func FileSystem() fs.FS {
// Remove the root
f, err := fs.Sub(content, contentDir)
if err != nil {
panic(err)
}
return f
}