Patrick O'brien
|
fed49d7096
|
Fix all unmarshaljson funcs and all types
|
2016-11-11 01:00:05 +10:00 |
|
Greg
|
41961cea03
|
MarshalText for null.String
forgot to add this
|
2016-02-28 09:53:16 +09:00 |
|
Greg
|
a9db3ac26f
|
JSON "" shouldn't unmarshal to a null null.String.
That's what the zero package is for.
This was a "feature", but inconsistent with the rest of the null package.
|
2015-10-02 14:42:03 +09: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 |
|
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 |
|
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 |
|
Gregory Roseberry
|
72eabffd9d
|
change test output messages
|
2014-08-29 11:21:30 +09:00 |
|
Gregory Roseberry
|
8ba2f90d14
|
IsZero() now returns true if string is valid but blank
|
2014-08-29 11:09:04 +09:00 |
|
Gregory Roseberry
|
705af58a4d
|
fancy docs and 100% coverage
|
2014-08-29 10:50:02 +09:00 |
|
Gregory Roseberry
|
d46826878c
|
docs and tweaks
|
2014-08-29 10:29:17 +09:00 |
|
Greg
|
95bde34e57
|
add IsZero()
Go 1.4 will have JSON ,omitempty respect this, maybe.
|
2014-08-29 00:37:35 +09:00 |
|
Greg
|
cf649e8f2a
|
update tests
|
2014-08-29 00:13:09 +09:00 |
|
Greg
|
043f53c9b4
|
initial commit
|
2014-08-29 00:11:18 +09:00 |
|