vikunja-api/vendor/github.com/labstack/gommon/bytes
2018-11-03 15:05:45 +00:00
..
bytes.go CalDAV support (#15) 2018-11-03 15:05:45 +00:00
README.md initial commit 2018-06-10 11:11:42 +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