web

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2026 License: MIT Imports: 8 Imported by: 0

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

func Serve(addr string, wasmPath string) error

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.

Jump to

Keyboard shortcuts

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