Documentation
¶
Overview ¶
Package tools implements utility routines
Index ¶
Constants ¶
View Source
const ( // Escape is ansi terminal escape sequence. Escape = "\x1b[" // Reset is ansi termnial code for reset. Reset = Escape + "0m" // Green is ansi terminal code for green text. Green = Escape + "32m" )
Variables ¶
This section is empty.
Functions ¶
func PrettyByteSize ¶
PrettyByteSize formats a byte size (int) into a human-readable colored string using binary prefixes (KiB, MiB, etc.).
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package config reads a yaml config file from the XDG_CONFIG_HOME and unmarshals it into a user supplied struct
|
Package config reads a yaml config file from the XDG_CONFIG_HOME and unmarshals it into a user supplied struct |
|
Package logging provides slog helpers.
|
Package logging provides slog helpers. |
Click to show internal directories.
Click to hide internal directories.