Vishal Rana 1109e5b250 Changed binary prefix function 10 years ago
..
README.md 1109e5b250 Changed binary prefix function 10 years ago
bytes.go 1109e5b250 Changed binary prefix function 10 years ago
bytes_test.go 1109e5b250 Changed binary prefix function 10 years ago

README.md

Bytes

Format bytes to string

Installation


## [Usage](https://github.com/labstack/gommon/blob/master/bytes/bytes_test.go)

### Decimal prefix

```go
fmt.Println(bytes.Format(1323))

1.32 KB

Binary prefix

fmt.Println(bytes.FormatB(1323))

1.29 KiB