We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c8c6a8 commit 27f1a38Copy full SHA for 27f1a38
1 file changed
parser.go
@@ -483,11 +483,11 @@ func ParseFloat(b []byte) (float64, error) {
483
}
484
485
486
-// ParseNumber parses a Number ValueType into a Go float64
+// ParseInt parses a Number ValueType into a Go int64
487
func ParseInt(b []byte) (int64, error) {
488
- if v, err := parseInt(b); !err {
+ if v, ok := parseInt(b); !ok {
489
return 0, MalformedValueError
490
} else {
491
return v, nil
492
493
-}
+}
0 commit comments