mirror of
https://github.com/42wim/matterbridge.git
synced 2024-11-16 00:49:26 +01:00
395 B
395 B
Bytes
- Format bytes integer to human readable bytes string.
- Parse human readable bytes string to bytes integer.
Installation
go get github.com/labstack/gommon/bytes
Usage
Format
println(bytes.Format(13231323))
12.62MB
Parse
, _ = Parse("2M")
bprintln(b)
2097152