package
Version:
v0.0.0-...-0caaa62
Opens a new window with list of versions in this module.
Published: Sep 1, 2017
License: GPL-3.0-or-later
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package bytesize formats a size with units.
ByteSize formats size into human-readable content.
const (
KB ByteSize = 1 << (10 * iota)
MB
GB
TB
PB
EB
ZB
YB
)
Size constants.
String formats the value to an usable range (1-999) with related unit.
No decimal under MB, otherwise three digits are provided : 123 or 12.3 or 1.23.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.