surtur
938f8189cb
* 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
20 lines
233 B
Go
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")
|
|
}
|