wasmbuild

command
v0.6.13 Latest Latest
Warning

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

Go to latest
Published: May 28, 2026 License: MIT Imports: 4 Imported by: 0

README

wasmbuild

wasmbuild is a CLI tool to compile Go code to WebAssembly and generate the necessary JavaScript loader.

Installation

go install github.com/tinywasm/client/cmd/wasmbuild@latest

Usage

By default, wasmbuild looks for web/client.go and compiles it to web/public/client.wasm using TinyGo (Mode S). It also generates web/public/script.js which includes wasm_exec.js and the initialization code.

# Default (TinyGo)
wasmbuild

# Using Standard Go compiler
wasmbuild -stdlib

Requirements

  • web/client.go file must exist.
  • TinyGo must be installed (it will attempt to auto-install on Linux if missing and not using -stdlib).

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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