Skip to content

Commit 7536c3b

Browse files
committed
add install
1 parent e63eb3c commit 7536c3b

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

wasm/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
pkg/
12
src/

wasm/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ fmt:
2323
@go fmt ${DIR}/*.go
2424

2525
install:
26-
go get -u github.com/siongui/godom/wasm
26+
GOARCH=wasm GOOS=js go get -u github.com/siongui/godom/wasm

wasm/README.rst

+6
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ Development Environment:
1010
- `Ubuntu 18.04`_
1111
- Go_ (Go 1.11 or later for Go WebAssembly)
1212

13+
Install:
14+
15+
.. code-block:: bash
16+
17+
$ GOARCH=wasm GOOS=js go get -u github.com/siongui/godom/wasm
18+
1319
Examples:
1420

1521
- Hello World (`demo <https://siongui.github.io/frontend-programming-in-go/wasm/001-hello-world/demo/>`_)

0 commit comments

Comments
 (0)