~eliasnaur/giobtc

ref: ed79701facedbf387e602091873a2f87aefaa030 giobtc/golab-workshop-2019.slide -rw-r--r-- 720 bytes
ed79701fElias Naur update gio version 1 year, 9 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
Gio: Portable, immediate mode GUI
GoLab 2019 Workshop

Elias Naur
mail@eliasnaur.com
@elias_naur
https://gioui.org
https://scatter.im
https://eliasnaur.com/giobtc


* Installation

[[gioui.org][https://gioui.org]]. Look for "Installation".

$ mkdir project
$ cd project
$ go mod init example.com
$ go run gioui.org/example/kitchen

Download kitchen example

$ git clone git@git.sr.ht:~eliasnaur/gio
$ cd gio/example/kitchen
$ go run .

* Blank window

Copy paste from: *http://tiny.cc/golab2019*

  package main

  import (
      "gioui.org/app"
      "gioui.org/io/system"
  )

  func main() {
      go func() {
          w := app.NewWindow()
          for range w.Events() {
          }
      }()
      app.Main()
  }