Documentation
¶
Overview ¶
=============================================================================
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatFileSize ¶
FormatFileSize converts a file size in bytes (like 5242880) into a nice human-readable string like "5.00 MB" or "1.37 GB".
It uses decimal/SI units (1000-based) rather than binary units (1024-based).
Example outputs:
0 → "0B" 512 → "512.00 B" 1536 → "1.54 kB" 2_500_000 → "2.50 MB" 7_429_000_000 → "7.43 GB"
func PlaceOverlay ¶
func PlaceOverlay(x, y int, fg, bg string, opts ...WhitespaceOption) string
PlaceOverlay places fg on top of bg.
Types ¶
type WhitespaceOption ¶
type WhitespaceOption func(*whitespace)
Click to show internal directories.
Click to hide internal directories.