Documentation
¶
Overview ¶
Package hash implements the `unum hash` subcommand — a deterministic deriver that maps any string to a stable set of useful values.
Package hash implements the unum hash subcommand — a deterministic deriver that maps any string to a stable set of useful values via SHA256.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendHistory ¶
AppendHistory adds input to the history file, capping at maxHistory entries.
Types ¶
type HistoryEntry ¶
type HistoryEntry = types.HistoryEntry
HistoryEntry is an alias for types.HistoryEntry so callers can use hash.HistoryEntry directly.
func LoadHistory ¶
func LoadHistory() []HistoryEntry
LoadHistory reads the history file and returns entries newest-first. Returns an empty slice if the file is absent or malformed.
Directories
¶
| Path | Synopsis |
|---|---|
|
render
|
|
|
static
Package static renders hash derivation results to a terminal writer.
|
Package static renders hash derivation results to a terminal writer. |
|
tui
Package tui provides a Bubble Tea TUI for the hash derivation tool.
|
Package tui provides a Bubble Tea TUI for the hash derivation tool. |
|
web
Package web provides the HTTP server for the unum hash web UI.
|
Package web provides the HTTP server for the unum hash web UI. |
|
Package types defines the shared data types for the hash tool.
|
Package types defines the shared data types for the hash tool. |
Click to show internal directories.
Click to hide internal directories.