wasm/

directory
v0.0.0-...-7abb3bd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 18, 2018 License: Unlicense

README

======================================
Frontend Programming in Go WebAssembly
======================================

This directory contains examples for Go WebAssembly_.
For GopherJS_ examples, visit `root directory`_.

Development Environment:

  - `Ubuntu 18.04`_
  - Go_ (Go 1.11 or later for Go WebAssembly)


Install
+++++++

.. code-block:: bash

  $ GOARCH=wasm GOOS=js go get -u github.com/siongui/godom/wasm

Examples:

  - Hello World (`demo <https://siongui.github.io/frontend-programming-in-go/wasm/001-hello-world/demo/>`__)
  - querySelector (`demo <https://siongui.github.io/frontend-programming-in-go/wasm/002-querySelector/demo/>`__)
  - querySelectorAll (`demo <https://siongui.github.io/frontend-programming-in-go/wasm/003-querySelectorAll/demo/>`__)
  - addEventListener (`demo <https://siongui.github.io/frontend-programming-in-go/wasm/004-addEventListener/demo/>`__)
  - XMLHttpRequest (XHR) (`demo <https://siongui.github.io/frontend-programming-in-go/wasm/005-xmlhttprequest-xhr/demo/>`__)

.. _Ubuntu 18.04: http://releases.ubuntu.com/18.04/
.. _Go: https://golang.org/dl/
.. _GopherJS: http://www.gopherjs.org/
.. _WebAssembly: https://duckduckgo.com/?q=webassembly
.. _root directory: https://github.com/siongui/frontend-programming-in-go

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL