web

package
v0.8.0 Latest Latest
Warning

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

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

Documentation

Overview

Package web provides the HTTP server for the unum hash 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 SetFuncs

func SetFuncs(
	derive func(string) types.Result,
	appendHistory func(string) error,
	loadHistory func() []types.HistoryEntry,
)

SetFuncs wires in the derivation and history functions.

func Start

func Start(opts Options) error

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

Types

type Options

type Options struct {
	Port  int
	Quiet bool
}

Options configures the hash web server.

Jump to

Keyboard shortcuts

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