web

package
v0.10.0 Latest Latest
Warning

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

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

Documentation

Overview

Package web provides the HTTP server for the unum diff 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(d *node.Diff, opts Options) error

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

func StartServer added in v0.9.0

func StartServer(opts Options) error

StartServer launches the diff web server in input mode with no pre-loaded diff. GET /api/diff returns 204; POST /api/diff computes a diff from submitted content.

Types

type Options

type Options struct {
	Port  int
	Quiet bool
}

Options configures the diff web server.

Jump to

Keyboard shortcuts

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