Run a remote or local Go package with WasmServe
mainYou can serve a remote Go package by providing its import path, or a local package by providing its directory path.
To run a remote package:
wasmserve github.com/hajimehoshi/wasmserve/exampleTo run a local package:
wasmserve ./path/to/local/packageAfter running the command, open http://localhost:8080/ in your browser to view the application.
# Example: Running a remote package
wasmserve github.com/hajimehoshi/wasmserve/example
# Example: Running a local package
git clone https://github.com/hajimehoshi/ebiten
cd ebiten
wasmserve ./examples/sprites