README.md: add instructions to run the hello world program

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-03-31 14:08:41 +02:00
parent 5464fb0763
commit dde7961b7d
+10 -2
View File
@@ -21,10 +21,18 @@ For Windows you need the ANGLE drivers for emulating OpenGL ES. You can build AN
With Go 1.12 or newer,
$ export GO111MODULE=on
$ go run gioui.org/apps/hello
should display a simple message in a window.
The command
$ go run gioui.org/apps/gophers
should display a simple (nonsense) demo that displays Go contributors fetched from GitHub. If you run
into quota issues, supply a [Github token](https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line)
should display a simple (nonsense) demo that displays Go contributors fetched from GitHub.
If you run into quota issues, supply a
[Github token](https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line)
with the `-token`flag:
$ go run gioui.org/apps/gophers -token <github token>