Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculatePercentage ¶
CalculatePercentage safely calculates percentage from used and total values Returns 0.0 if total is 0 to avoid division by zero
func CalculatePercentageInt ¶
CalculatePercentageInt safely calculates percentage from used and total int64 values Returns 0.0 if total is 0 to avoid division by zero
func FormatBytes ¶
FormatBytes formats a byte count to a human-readable format with dynamic units Always shows 2 decimal places and chooses the most appropriate unit (GB, TB, PB)
func FormatBytesFloat ¶
FormatBytesFloat converts float64 GB values to human-readable format Input is assumed to be in GB, converts to appropriate units with 2 decimal places
func FormatStatusIndicator ¶
FormatStatusIndicator returns a string with a colored status emoji. Green ▲ for online/running, Red ▼ for offline/stopped, Yellow ● for others.
func FormatUptime ¶
FormatUptime formats the uptime in seconds to a human-readable format
Types ¶
This section is empty.