embed and unpack gloomi in a decent way
This commit is contained in:
15
embed_gloomi.go
Normal file
15
embed_gloomi.go
Normal file
@@ -0,0 +1,15 @@
|
||||
//go:build gloomi
|
||||
// +build gloomi
|
||||
|
||||
package main
|
||||
|
||||
import "embed"
|
||||
|
||||
//go:embed schema.sql dist/host dist/gloomi.so
|
||||
var embeddedAssets embed.FS
|
||||
|
||||
var defaultConfig = []byte(`
|
||||
[[plugins]]
|
||||
file = "gloomi.so"
|
||||
domains = ["localhost"]
|
||||
`)
|
||||
Reference in New Issue
Block a user