Vishal Rana add51d79f4 Fixed a typo пре 10 година
..
README.md 60ec6a7736 Update README.md пре 10 година
bytes.go 892a10ee86 Fixed build пре 10 година
bytes_test.go add51d79f4 Fixed a typo пре 10 година

README.md

Bytes

Format bytes to string

Installation

go get github.com/labstack/gommon/bytes

Usage

import gytes github.com/labstack/gommon/bytes

Decimal prefix

fmt.Println(gytes.Format(1323))

1.32 KB

Binary prefix

fmt.Println(gytes.FormatB(1323))

1.29 KiB