package
Version:
v0.1.4
Opens a new window with list of versions in this module.
Published: Apr 3, 2026
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package utils provides shared helper functions used across epoch packages.
FirstNonEmpty returns the first non-blank value from the given strings.
HumanSize formats a byte count as a human-readable string (e.g. "1.5G").
ParseRef splits a "name:tag" reference, defaulting tag to "latest".
SHA256Hex returns the lowercase hex-encoded SHA-256 digest of data.
Truncate returns s trimmed to at most n bytes.
It is intended for short ASCII identifiers used in logs and error messages.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.