5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2024-11-27 06:31:36 +00:00
matterbridge/vendor/github.com/labstack/gommon/bytes
2019-09-07 22:46:58 +02:00
..
bytes.go Update dependencies (#886) 2019-09-07 22:46:58 +02:00
README.md Use mod vendor for vendored directory (backwards compatible) 2018-08-06 21:47:05 +02:00

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

b, _ = Parse("2M")
println(b)

2097152