blob: 859f0759fdc76418f4fe1d5b6e6769d8f3b87037 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
//go:build embed
package static
import "embed"
// Templates is the asset filesystem compiled into the binary.
//
//go:embed *
var Templates embed.FS
// Enabled reports that assets are embedded in this build.
var Enabled bool = true
// StaticPath is accepted for parity with the non-embed build, where it names the
// directory assets are read from. It is ignored here.
var StaticPath string
// CopyTemplatesToMemory is a no-op in this build: the assets are already embedded.
func CopyTemplatesToMemory() {
_ = StaticPath
}
|