|
|
9 سال پیش | |
|---|---|---|
| .. | ||
| README.md | 9 سال پیش | |
| bytes.go | 9 سال پیش | |
| bytes_test.go | 9 سال پیش | |
Format bytes to string
go get github.com/labstack/gommon/bytes
import github.com/labstack/gommon/bytes
fmt.Println(bytes.Format(1323))
1.32 KB
bytes.SetBinaryPrefix(true)
fmt.Println(bytes.Format(1323))
1.29 KiB
g := New()
fmt.Println(g.Format(13231323))