Add gallery app, native window and architecture tests

This commit is contained in:
ZacharyZhang-NY committed 2026-10-11 16:45:34 -04:00
1 parent 7e47e3a924
commit d3b4adebb0
16 files changed
+1552 -5

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
// Command gallery opens the 8bitMyGoUI gallery in a native window.
package main
import (
"log"
"github.com/egoist/mygo"
"github.com/egoist/mygo/ui"
"git.zacharyzhang.com/ZacharyZhang-NY/8bitMyGoUI/gallery"
)
func main() {
app := gallery.New("/")
mygo.App.WhenReady(func() {
mygo.NewWindow(mygo.WindowOptions{
Title: "8bitMyGoUI",
Width: 1280,
Height: 800,
MinWidth: 640,
MinHeight: 400,
Content: ui.View(app.View),
})
})
if err := mygo.App.Run(); err != nil {
log.Fatal(err)
}
}