From 3516434fbf56ada3724d4c07bf31bb71d0fe5469 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 28 Apr 2023 07:29:46 -0500 Subject: allow passing of embed plugin files Signed-off-by: Jeff Carr --- structs.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'structs.go') 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 -- cgit v1.2.3