Skip to content

test and run Go WASM programs in the browser.

License

Notifications You must be signed in to change notification settings

linden/wasmexec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wasmexec

Getting Started

Install

# install `wasmexec`.
go install github.com/linden/wasmexec@latest

Run

# set the build target to wasm/js then run using wasmexec as the executor.
GOOS=js GOARCH=wasm go run -exec wasmexec 

Test

# set the build target to wasm/js then test using wasmexec as the executor.
GOOS=js GOARCH=wasm go test -exec wasmexec -v

Credits

Based-off of github.com/agnivade/wasmbrowsertest.

About

test and run Go WASM programs in the browser.

Resources

License

Stars

Watchers

Forks