Skip to content

Simple WebAssembly example in Golang using the default example HTML.

Notifications You must be signed in to change notification settings

KEINOS/go-wasm-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Golang WASM Example

This repository is used to check the WebAssembly sample HTML that comes with Go by default.

$ # Copy the JavaScript for wasm and the sample HTML from the Go
$ # installation to the current directory. Then build the wasm
$ # binary.
$ ./build.sh
**snip**

$ # Start a simple web server to serve the wasm binary and the
$ # sample HTML.
$ docker compose run --rm web
**snip**

$ # Now open http://localhost:9090/ in your browser and open the
$ # developer console. Then press the "Run" button and you should
$ # see "Hello, WebAssembly!"
$
$ # To stop the server, press Ctrl+C in the terminal.
^C

About

Simple WebAssembly example in Golang using the default example HTML.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published