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

web

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2026 License: MIT Imports: 13 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
	DarkTheme  string // cyber | matrix | dracula | nord
	LightTheme string // clean | solarized
	Version    string
}

Options configures the diff web server.

Jump to

Keyboard shortcuts

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