package
Version:
v5.0.0-...-03972fd
Opens a new window with list of versions in this module.
Published: Jan 20, 2022
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Bytes
- Format bytes integer to human readable bytes string.
- Parse human readable bytes string to bytes integer.
This is package is imported from project github.com/l a bstack/gommon/bytes
Documentation
¶
Format wraps global Bytes's Format function.
Parse wraps global Bytes's Parse function.
Bytes struct
New creates a Bytes instance.
Format formats bytes integer to human readable string.
For example, 31323 bytes will return 30.59KB.
Parse parses human readable bytes string to bytes integer.
For example, 6GB (6G is also valid) will return 6442450944.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.