package
Version:
v0.61.0
Opens a new window with list of versions in this module.
Published: Nov 8, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 11
Opens a new window with list of known importers.
Documentation
¶
B represents bytes
ToBytes is a pass-through function for bytes
GiB represents GiB
ToGiB converts any StorageUnit type to GiB
ToBytes converts GiB to bytes
KiB represents KiB
ToKiB converts any StorageUnit type to KiB
ToBytes converts KiB to bytes
MiB represents MiB
ToMib converts any StorageUnit type to MiB
ToBytes converts MiB to bytes
type StorageUnits interface {
ToBytes() B
}
StorageUnits is an interface for converting disk/memory storage
units amongst each other.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.