package
Version:
v0.0.0-...-44c758a
Opens a new window with list of versions in this module.
Published: Feb 23, 2024
License: Apache-2.0
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 data provides functionality for measuring and displaying
data quantities.
A Size represents a data quantity in number of bytes.
const (
B Size = 1 << (10 * iota)
KiB
MiB
GiB
TiB
PiB
EiB
)
Common data quantities.
Bytes returns the size as an integer byte count.
Count returns the number of us in s.
String returns a string representation of the data quantity b,
picking the largest appropriate unit.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.