Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesRateFormatter ¶ added in v0.5.0
BytesRateFormatter returns a Y-axis label formatter function for bytes per second. If abs is true, negative values are formatted without a minus sign (ideal for TX / Write).
func FormatBytes ¶ added in v0.5.0
FormatBytes formats a byte count into a human-readable string (e.g. "1 KB", "1.5 MB").
func FormatBytesRate ¶ added in v0.5.0
FormatBytesRate formats a throughput value in bytes per second (e.g. "1 KB/s", "100 MB/s").
func FormatBytesRateAbs ¶ added in v0.5.0
FormatBytesRateAbs formats a throughput value in bytes per second using its absolute value (e.g. "50 MB/s"). Ideal for mirror/symmetric Y-axes (RX/TX, Read/Write).
func FormatTick ¶
FormatTick formats a tick value concisely: up to 4 significant digits without trailing zeros.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.