option for embedding files in binary

This commit is contained in:
Laptop
2024-12-29 11:45:34 +02:00
parent a8d6d67fda
commit 5afc1e830a
23 changed files with 66 additions and 21 deletions

14
static/init.go Normal file
View File

@@ -0,0 +1,14 @@
package static
// I had to move the folders to here due to go limitation. You can't embed from relative (e.g. parent) paths
import "embed"
//go:embed assets/*
var Assets embed.FS
//go:embed instance/*
var Instance embed.FS
//go:embed external/*
var External embed.FS