18 lines
399 B
Go
18 lines
399 B
Go
//go:build !no_ui
|
|
|
|
// Package ui embeds the built dashboard in dist/. `task ui` builds it, and
|
|
// `task build` and CI build it before any Go build that embeds it.
|
|
package ui
|
|
|
|
import (
|
|
"embed"
|
|
"io/fs"
|
|
)
|
|
|
|
//go:embed all:dist
|
|
var distDir embed.FS
|
|
|
|
// DistDirFS is the built dashboard rooted at dist/, or nil when the binary
|
|
// was built with the no_ui tag.
|
|
var DistDirFS, _ = fs.Sub(distDir, "dist")
|