From 48786bbd05ccb3d2839d00f4018e98ed5294c0f5 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Sun, 7 Jul 2019 00:10:18 +0200 Subject: [PATCH] README.md: move the build line first in webassembly instructions Signed-off-by: Elias Naur --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6eae6336..7104ea54 100644 --- a/README.md +++ b/README.md @@ -112,8 +112,8 @@ To run a Gio program in a browser with WebAssembly and WebGL support, use the Go driver and add a
element to a HTML page. The gio tool can also output a directory ready to view in a browser: - $ go get github.com/shurcooL/goexec $ go run gioui.org/cmd/gio -target js gioui.org/apps/gophers + $ go get github.com/shurcooL/goexec $ goexec 'http.ListenAndServe(":8080", http.FileServer(http.Dir("gophers")))' Open http://localhost:8080 in a browser to run the app.