x

module
v0.2.14 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2026 License: MIT

README

x

Install

go get github.com/gechr/x@latest

Packages

Package Description
ansi ANSI-aware text wrapping, hyperlinks, and TTY fallback
filepath Path helpers: symlink resolution and containment checks
http HTTP helpers: retryable status codes, status text, Link headers
human Human-readable bytes, durations, counts, numbers, ordinals
maps Map helpers: sorted iteration, grouping, inversion
math Numeric helpers: clamping with NaN handling
os OS helpers: file probes, safe writes, copy, line I/O
ptr Pointer helpers
set Generic set backed by a map
shell Shell detection, path expansion, argument quoting, and splitting
slices Slice helpers
strings String helpers: split, contains, indent/dedent, truncate, blank
sync Concurrency helpers: bounded parallel-for
terminal Terminal detection and size queries
terminal/emulator Terminal emulator detection (iTerm2, Ghostty, kitty, …)
time Time helpers: calendar-scaled durations

Directories

Path Synopsis
Package ansi provides ANSI-aware text wrapping, hyperlinks, and TTY fallback.
Package ansi provides ANSI-aware text wrapping, hyperlinks, and TTY fallback.
Package filepath provides path helpers: symlink resolution and containment checks.
Package filepath provides path helpers: symlink resolution and containment checks.
Package http provides HTTP helpers: retryable status codes, status text, and Link headers.
Package http provides HTTP helpers: retryable status codes, status text, and Link headers.
Package human formats bytes, durations, counts, numbers, and ordinals for human-readable output.
Package human formats bytes, durations, counts, numbers, and ordinals for human-readable output.
Package maps provides map helpers: sorted iteration, grouping, and inversion.
Package maps provides map helpers: sorted iteration, grouping, and inversion.
Package math provides numeric helpers.
Package math provides numeric helpers.
Package os provides OS helpers: file probes, safe writes, copy, and line I/O.
Package os provides OS helpers: file probes, safe writes, copy, and line I/O.
Package ptr provides pointer helpers.
Package ptr provides pointer helpers.
Package set provides a generic set backed by a map.
Package set provides a generic set backed by a map.
Package shell provides shell detection, path expansion, argument quoting, and splitting.
Package shell provides shell detection, path expansion, argument quoting, and splitting.
Package slices provides slice helpers.
Package slices provides slice helpers.
Package strings provides string helpers: split, contains, indent/dedent, truncate, and blank checks.
Package strings provides string helpers: split, contains, indent/dedent, truncate, and blank checks.
Package sync provides concurrency helpers.
Package sync provides concurrency helpers.
Package terminal provides terminal detection and size queries.
Package terminal provides terminal detection and size queries.
emulator
Package emulator identifies the terminal emulator hosting the process.
Package emulator identifies the terminal emulator hosting the process.
Package time provides time helpers.
Package time provides time helpers.

Jump to

Keyboard shortcuts

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