Patrick O'brien
50834ac6bc
Add byte type
2016-11-11 17:15:01 +10:00
Patrick O'brien
fed49d7096
Fix all unmarshaljson funcs and all types
2016-11-11 01:00:05 +10:00
Patrick O'brien
bbb7b84bb6
Add all int and float null types
...
* Add Scan and Value methods for non sql.Int64 and sql.Float64 types
* Change NullInt to use int in the code opposed to int64
* Rename Float to Float64
* Add support for all missing key int and float types:
float32, int8, int16, int32, int64, uint8, uint16, uint32, uint64
* Update README to include new additions/changes
2016-05-17 22:02:36 +10:00
Greg
95e26ed907
prefer JSON errors when unmarshaling, better docs
...
Invalid JSON input will return a *json.SyntaxError instead of a cryptic error
from this package.
2015-09-10 20:05:24 +09:00
Gregory Roseberry
41fe781af5
fix govet warnings
2015-01-28 15:15:30 +09:00
Gregory Roseberry
68a803260b
overflow and float conversion tests
2014-09-17 10:12:28 +09:00
Ryan LaHue
041ab70863
Add tests for non-integer floats being cast to Int silently, and int64 overflows
2014-09-16 18:05:23 -07:00
Greg
214012c56c
UnmarshalJSON returns an error for invalid zero.* types, tests
2014-09-09 12:31:58 +09:00
Greg
406494f0f8
refactor to use package zero instead of null, and null instead of nuller
2014-09-02 03:22:17 +09:00
Gregory Roseberry
5cd2a757d8
SetValid() func and bring coverage back up to 100%
2014-09-01 14:25:57 +09:00
Gregory Roseberry
d3f0388e17
add Floats and Bools
2014-09-01 13:46:40 +09:00
Greg
b3e13aac8d
refactor into 2 packages
2014-08-31 17:28:34 +09:00
Greg
9ed047bf7b
nullable Int, String improvements
2014-08-30 23:53:25 +09:00