We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c73d4f5 commit 60ec6a7Copy full SHA for 60ec6a7
bytes/README.md
@@ -4,22 +4,28 @@ Format bytes to string
4
5
## Installation
6
7
-```go get github.com/labstack/gommon/bytes```
+```go
8
+go get github.com/labstack/gommon/bytes
9
+```
10
11
## [Usage](https://github.com/labstack/gommon/blob/master/bytes/bytes_test.go)
12
13
+```sh
14
+import gytes github.com/labstack/gommon/bytes
15
16
+
17
### Decimal prefix
18
19
```go
-fmt.Println(bytes.Format(1323))
20
+fmt.Println(gytes.Format(1323))
21
```
22
23
`1.32 KB`
24
25
### Binary prefix
26
27
-fmt.Println(bytes.FormatB(1323))
28
+fmt.Println(gytes.FormatB(1323))
29
30
31
`1.29 KiB`
0 commit comments