summaryrefslogtreecommitdiff
path: root/structs.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-04-28 07:29:46 -0500
committerJeff Carr <[email protected]>2023-04-28 07:29:46 -0500
commit3516434fbf56ada3724d4c07bf31bb71d0fe5469 (patch)
tree450fe7cc7c12804ed81073add6d61c85ac8eed34 /structs.go
parenta1deb9845593e211a1ce6fe4a7f88bbe5acd9981 (diff)
allow passing of embed plugin files
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'structs.go')
-rw-r--r--structs.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/structs.go b/structs.go
index 4697dde..491a99d 100644
--- a/structs.go
+++ b/structs.go
@@ -1,8 +1,9 @@
package gui
import (
- "git.wit.org/wit/gui/toolkit"
"sync"
+ "embed"
+ "git.wit.org/wit/gui/toolkit"
)
//
@@ -52,6 +53,9 @@ type GuiConfig struct {
// sets the chan for the plugins to call back too
guiChan chan toolkit.Action
+
+ // option to pass in compiled plugins as embedded files
+ resFS embed.FS
}
// The Node is a binary tree. This is how all GUI elements are stored