Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatBytes ¶
FormatBytes formats byte counts into human-readable units (e.g. 1.25 MB)
func FormatRate ¶
FormatRate formats transfer rates in bytes/sec to human-readable strings
Types ¶
type InterfaceStat ¶
InterfaceStat represents raw network device statistics
func ReadInterfaceStats ¶
func ReadInterfaceStats() ([]InterfaceStat, error)
ReadInterfaceStats reads raw byte counters from /proc/net/dev
Click to show internal directories.
Click to hide internal directories.