Revision fcea23f2ecfad4ed613f796c16ed274e3a0828ad authored by Alexander Emelin on 16 April 2021, 13:36:12 UTC, committed by Alexander Emelin on 16 April 2021, 13:36:12 UTC
2 parent s f4e7bc0 + db4a7d6
Raw File
embed.go
package grafana

import (
	"embed"
	"io/fs"
)

// CoreSchema embeds all CUE files within the cue/ subdirectory.
//
// TODO good rule about where to search
//
//go:embed cue/*/*.cue
var CoreSchema embed.FS

// TODO good rule about where to search
//
//go:embed public/app/plugins/*/*/*.cue public/app/plugins/*/*/plugin.json
var base embed.FS

// PluginSchema embeds all CUE files within the public/ subdirectory.
var PluginSchema, _ = fs.Sub(base, "public/app/plugins")
back to top