Browse Source

Update README.md

Vishal Rana 10 years ago
parent
commit
60ec6a7736
1 changed files with 9 additions and 3 deletions
  1. 9 3
      bytes/README.md

+ 9 - 3
bytes/README.md

@@ -4,14 +4,20 @@ Format bytes to string
 
 ## Installation
 
-```go get github.com/labstack/gommon/bytes```
+```go
+go get github.com/labstack/gommon/bytes
+```
 
 ## [Usage](https://github.com/labstack/gommon/blob/master/bytes/bytes_test.go)
 
+```sh
+import gytes github.com/labstack/gommon/bytes
+```
+
 ### Decimal prefix
 
 ```go
-fmt.Println(bytes.Format(1323))
+fmt.Println(gytes.Format(1323))
 ```
 
 `1.32 KB`
@@ -19,7 +25,7 @@ fmt.Println(bytes.Format(1323))
 ### Binary prefix
 
 ```go
-fmt.Println(bytes.FormatB(1323))
+fmt.Println(gytes.FormatB(1323))
 ```
 
 `1.29 KiB`