formatter

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Age

func Age(d time.Duration) string

Age formats a duration into a readable age string.

func Size

func Size(bytes int64) string

Size formats bytes into human-readable string: 1.2 GB, 340 MB, etc.

func SizeColor

func SizeColor(bytes int64) string

SizeColor returns a color string based on size for lipgloss. red > 500MB, yellow > 100MB, green otherwise.

func Truncate

func Truncate(s string, maxLen int) string

Truncate truncates a string to maxLen, adding "…" if needed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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