lightning-terminal/app.go
sputn1ck 4f1dde8a8f
multi: add support for building without UI
This commit adds support for building without UI.
If the build tag "litd no_ui" is set the UI will
be disabled.
2024-08-14 13:58:57 +02:00

19 lines
494 B
Go

//go:build !litd_no_ui
// +build !litd_no_ui
package terminal
import (
"embed"
)
var (
// appBuildFS is an in-memory file system that contains all the static
// HTML/CSS/JS files of the UI. It is compiled into the binary with the
// go 1.16 embed directive below. Because the path is relative to the
// root package, all assets will have a path prefix of /app/build/ which
// we'll strip by giving a sub directory to the HTTP server.
//
//go:embed app/build/*
appBuildFS embed.FS
)