Revision 11412ce18530637d0e60f738e7a3d19053057af9 authored by Grot (@grafanabot) on 18 May 2021, 13:21:02 UTC, committed by GitHub on 18 May 2021, 13:21:02 UTC
(cherry picked from commit 3339d13a45ba1011bfb2cf3d4af6cf1935dec753)

Co-authored-by: Hugo Häggmark <hugo.haggmark@grafana.com>
1 parent d45365d
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