mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 15:45:38 +00:00
cmd,example: bump gio version
Add os.Exit to examples now that app.Main never returns. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -8,6 +8,7 @@ import (
|
||||
"image/color"
|
||||
"log"
|
||||
"math"
|
||||
"os"
|
||||
|
||||
"gioui.org/app"
|
||||
"gioui.org/f32"
|
||||
@@ -24,6 +25,7 @@ import (
|
||||
|
||||
func main() {
|
||||
go func() {
|
||||
defer os.Exit(0)
|
||||
w := app.NewWindow()
|
||||
if err := loop(w); err != nil {
|
||||
log.Fatal(err)
|
||||
|
||||
Reference in New Issue
Block a user