package
Version:
v0.10.0
Opens a new window with list of versions in this module.
Published: Sep 23, 2023
License: BSD-3-Clause
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
FromBytes returns the appropriate byte unit and value for the provided number
of bytes for human readability (e.g. 1024 bytes = 1 KB).
const (
Bytes ByteUnit = 1 << (10 * iota)
Kilobytes
Megabytes
Gigabytes
Terabytes
)
String returns the string representation of the byte unit.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.