Documentation
¶
Overview ¶
Package web — serve.go provides a development HTTP server for serving WASM ggplot applications. It is only compiled for native targets (not WASM).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Serve ¶
Serve starts an HTTP development server that hosts a WASM ggplot application. It serves the embedded index.html, the Go WASM support JS (wasm_exec.js), and the pre-built WASM binary at wasmPath.
addr is the listen address (e.g. ":8080" or "localhost:8080"). wasmPath is the path to the compiled .wasm file (e.g. "app.wasm").
This function blocks until the server shuts down.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.