New creates a Bytes instance.
()
| 41 | |
| 42 | // New creates a Bytes instance. |
| 43 | func New() *Bytes { |
| 44 | return &Bytes{} |
| 45 | } |
| 46 | |
| 47 | // Format formats bytes integer to human readable string according to IEC 60027. |
| 48 | // For example, 31323 bytes will return 30.59KB. |