diff options
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -1,7 +1,8 @@ -// This creates a simple hello world window package main import ( + "embed" + "go.wit.com/gui" "go.wit.com/lib/debugger" "go.wit.com/lib/gadgets" @@ -9,9 +10,15 @@ import ( "go.wit.com/log" ) +// sent via -ldflags +var VERSION string + // This is the beginning of the binary tree of widgets var myGui *gui.Node +//go:embed resources/* +var resources embed.FS + // this is the primary window. If you close it, the program will exit var mainWindow *gui.Node @@ -28,6 +35,7 @@ func main() { log.ShowFlags() } myGui = gui.New() + myGui.InitEmbed(resources) myGui.Default() helloworld() |
