Revision 0333f60fe2c359ccd24c86e133b0df95504e2065 authored by Grot (@grafanabot) on 18 May 2021, 08:15:31 UTC, committed by GitHub on 18 May 2021, 08:15:31 UTC
(cherry picked from commit bd4afe41ba647c49e57d52abc27be489e834c3de)

Co-authored-by: Gábor Farkas <gabor.farkas@gmail.com>
1 parent ec97933
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