util

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package util provides shared helper functions used across epoch packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FirstNonEmpty

func FirstNonEmpty(values ...string) string

FirstNonEmpty returns the first non-blank value from the given strings.

func HumanSize

func HumanSize(b int64) string

HumanSize formats a byte count as a human-readable string (e.g. "1.5G").

func ParseRef

func ParseRef(ref string) (string, string)

ParseRef splits a "name:tag" reference, defaulting tag to "latest".

func SHA256Hex

func SHA256Hex(data []byte) string

SHA256Hex returns the lowercase hex-encoded SHA-256 digest of data.

Types

This section is empty.

Jump to

Keyboard shortcuts

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