Web mirror, license, notices, README, compat

This commit is contained in:
ZacharyZhang-NY committed 2026-10-05 12:04:30 -04:00
1 parent 6c5d482aa5
commit 1704e2a619
9 files changed
+803 -1

No files matched your search

+8 -1
View File
@@ -1,9 +1,11 @@
// Gallery tours every MujicaUI component in a native MyGo window.
//
// go run ./examples/gallery
// go run ./examples/gallery native window
// go run ./examples/gallery -web :8080 browser mirror
package main
import (
"flag"
"log"
"github.com/egoist/mygo"
@@ -11,7 +13,12 @@ import (
)
func main() {
web := flag.String("web", "", "serve the gallery to a browser at this address instead of opening a window")
flag.Parse()
app := newGallery()
if *web != "" {
log.Fatal(serveWeb(*web, app.view))
}
mygo.App.WhenReady(func() {
mygo.NewWindow(mygo.WindowOptions{
Title: "MujicaUI Gallery",