summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go9
1 files changed, 8 insertions, 1 deletions
diff --git a/main.go b/main.go
index 090a612..ac0e8ec 100644
--- a/main.go
+++ b/main.go
@@ -1,6 +1,8 @@
package main
import (
+ "embed"
+
"go.wit.com/gui"
"go.wit.com/log"
)
@@ -11,8 +13,13 @@ var VERSION string
// This is the beginning of our binary tree of widgets
var myGui *gui.Node
+//go:embed resources/*
+var resources embed.FS
+
func main() {
- myGui = gui.New().Default()
+ myGui = gui.New()
+ myGui.InitEmbed(resources)
+ myGui.Default()
helloworld()