Skip to content

Commit 60ec6a7

Browse files
committed
Update README.md
1 parent c73d4f5 commit 60ec6a7

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

bytes/README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,28 @@ Format bytes to string
44

55
## Installation
66

7-
```go get github.com/labstack/gommon/bytes```
7+
```go
8+
go get github.com/labstack/gommon/bytes
9+
```
810

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

13+
```sh
14+
import gytes github.com/labstack/gommon/bytes
15+
```
16+
1117
### Decimal prefix
1218

1319
```go
14-
fmt.Println(bytes.Format(1323))
20+
fmt.Println(gytes.Format(1323))
1521
```
1622

1723
`1.32 KB`
1824

1925
### Binary prefix
2026

2127
```go
22-
fmt.Println(bytes.FormatB(1323))
28+
fmt.Println(gytes.FormatB(1323))
2329
```
2430

2531
`1.29 KiB`

0 commit comments

Comments
 (0)