Help us shape the future of Go! Take the 2026 Go Developer Survey

build

command
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: BSD-3-Clause Imports: 21 Imported by: 0

Documentation

Overview

Command build writes a deployable playground: a directory holding the page, the WebAssembly core built from source, Go's wasm_exec.js and the example notebooks.

go run github.com/go-notebook/playground/cmd/build -o public/playground \
    --org go-statistics --home https://go-statistics.github.io/ \
    --accent '#9e520f' --accent-dark '#f2b36b' notebooks/*.md

It runs from a Go module that requires github.com/go-notebook/playground, so that the version it builds is the one go.mod pins. Before writing anything it runs every notebook, natively, with the same engine the page runs in WebAssembly, and fails if a cell fails: a site never publishes an example that does not run.

Jump to

Keyboard shortcuts

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