Revision 4aaf141ddb0617aedc16f3652b0feee0069bc5be authored by Leon Sorokin on 13 May 2021, 07:33:11 UTC, committed by GitHub on 13 May 2021, 07:33:11 UTC
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
1 parent 6014551
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