gommon/bytes at master · labstack/gommon · GitHub
Skip to content

Latest commit

 

History

History

Folders and files

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

Format

println(bytes.Format(13231323))

12.62MB

Parse

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

2097152