Documentation
¶
Overview ¶
Package fmtutil provides small formatting helpers shared by internal packages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatBytes ¶
FormatBytes returns bytes formatted with binary units and the given precision.
func TruncateString ¶
TruncateString truncates s to maxLen, adding "..." when it fits.
func TruncateStringPlain ¶
TruncateStringPlain truncates s to maxLen without adding an ellipsis.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.