diff options
| author | Jeff Carr <[email protected]> | 2023-04-28 07:29:46 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-04-28 07:29:46 -0500 |
| commit | 3516434fbf56ada3724d4c07bf31bb71d0fe5469 (patch) | |
| tree | 450fe7cc7c12804ed81073add6d61c85ac8eed34 /structs.go | |
| parent | a1deb9845593e211a1ce6fe4a7f88bbe5acd9981 (diff) | |
allow passing of embed plugin files
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'structs.go')
| -rw-r--r-- | structs.go | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 |
