forked from ebhomengo/niki
1
0
Fork 0
niki/vendor/github.com/labstack/gommon/bytes
Erfan Mohammadi 86a962b0c9 style(niki): apply code formatting and linting (#85) 2024-07-25 03:15:04 +03:30
..
README.md feat(niki): dockerize app 2024-02-18 14:12:21 +03:30
bytes.go style(niki): apply code formatting and linting (#85) 2024-07-25 03:15:04 +03:30

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