matterbridge/vendor/github.com/labstack/gommon/bytes
Wim c81c0dd22a Update vendor, move to labstack/echo/v4 Fixes #698 2019-01-31 17:06:36 +01:00
..
README.md Use mod vendor for vendored directory (backwards compatible) 2018-08-06 21:47:05 +02:00
bytes.go Update vendor, move to labstack/echo/v4 Fixes #698 2019-01-31 17:06:36 +01:00

README.md

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