go-xkcdreader/main.go
surtur 938f8189cb
go,flake: add a fyne window,nixGL overlay,deps,fmt
* reformat the flake
* create a fyne application, specify deps as both buildGoModule
  buildInputs and packages in devShells
* add nixGL overlay to devShells so that openGL-based apps (such as fyne
  apps) run fine for non-NixOS users
* add build/link flags
2022-05-03 20:22:43 +02:00

20 lines
233 B
Go

package main
import (
"fmt"
"fyne.io/fyne/v2/app"
"fyne.io/fyne/v2/widget"
)
func main() {
a := app.New()
w := a.NewWindow("go-xkcd_reader")
w.SetContent(widget.NewLabel("Hello"))
w.ShowAndRun()
fmt.Println("Exited")
}