Documentation
¶
Overview ¶
Package jsonnum converts json.Number values into concrete Go numbers.
Integral numbers that fit in 64 bits become int64, however they are written (3, 3.0, 3e0); all others become float64. JSON Schema counts 3.0 as an integer, so storing it as int64 keeps "integer" fields integer-typed in MongoDB. Integers beyond 64 bits stay float64 (and may lose precision).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.