web

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2026 License: MIT Imports: 25 Imported by: 0

Documentation

Overview

Package web provides the HTTP server for the unum JSON web UI. All static assets are embedded at build time — the binary is fully self-contained.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(root *node.Node, opts Options) error

Start launches the web server, auto-opens the browser, and blocks until the user presses Ctrl+C.

func StartBrowser

func StartBrowser(opts Options) error

StartBrowser launches the web server in file-browser mode (no pre-selected file). The landing page lets the user navigate the filesystem and pick a .json file to explore.

Types

type Options

type Options struct {
	Port     int    // 0 = find a free port
	Filename string // original filename for display
	Quiet    bool
}

Options configures the web server.

Jump to

Keyboard shortcuts

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