Format formats bytes integer to human readable string according to IEC 60027. For example, 31323 bytes will return 30.59KB.
(value int64)
| 47 | // Format formats bytes integer to human readable string according to IEC 60027. |
| 48 | // For example, 31323 bytes will return 30.59KB. |
| 49 | func (b *Bytes) Format(value int64) string { |
| 50 | return b.FormatBinary(value) |
| 51 | } |
| 52 | |
| 53 | // FormatBinary formats bytes integer to human readable string according to IEC 60027. |
| 54 | // For example, 31323 bytes will return 30.59KB. |
no test coverage detected