https://github.com/grafana/grafana
Raw File
Tip revision: f04fb387eebaa907f05b53f22cf25b08f0a7d19d authored by Ying WANG on 01 June 2021, 09:12:53 UTC
add modif
Tip revision: f04fb38
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