Skip to content

Commit

Permalink
chore: consistent naming for number strings
Browse files Browse the repository at this point in the history
  • Loading branch information
ernado committed Nov 5, 2021
1 parent 5a191fc commit 85fb610
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ fmt.Println(raw.Type(), raw)
## Number

Use [jx.Decoder.Num](https://pkg.go.dev/github.com/ogen-go/jx#Decoder.Num) to read numbers, similar to `json.Number`.
Also supports string numbers, like `"12345"`, which is common compatible way to represent `uint64`.
Also supports number strings, like `"12345"`, which is common compatible way to represent `uint64`.

```go
d := jx.DecodeStr(`{"foo": "10531.0"}`)
Expand Down

0 comments on commit 85fb610

Please sign in to comment.