Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DiffValue ¶ added in v0.10.0
DiffValue formats a field value as "old => new" when the value changes, or just "val" when unchanged.
func FullDateTime ¶
FullDateTime formats t as "2006-01-02 15:04:05 UTC". Returns empty string for zero time.
func HumanTime ¶
HumanTime returns a relative human-readable time (e.g., "3 hours ago"). Returns empty string for zero time.
func OptionalValue ¶ added in v0.10.0
OptionalValue formats an optional pointer value as a string. Returns fallback for nil pointers. Supports any pointer type. Booleans are formatted as "yes"/"no"; all other types use their default format.
Types ¶
type Table ¶
type Table[T any] struct { // contains filtered or unexported fields }
Table renders items as an ASCII table.
Click to show internal directories.
Click to hide internal directories.