Skip to content

Commit 7bd484b

Browse files
committed
Update README.md
1 parent c5a5d74 commit 7bd484b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

gytes/README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,13 @@ fmt.Println(gytes.Format(1323))
3131

3232
`1.29 KiB`
3333

34-
Above examples operate on global instance of Gytes. To create a new instance
34+
### New intance
3535

3636
```go
37+
g := New()
38+
// g.BinaryPrefix(true)
39+
fmt.Println(g.Format(13231323))
40+
```
41+
42+
`13.23 MB`
3743

0 commit comments

Comments
 (0)