Commit graph

20 commits

Author SHA1 Message Date
Greg
41961cea03 MarshalText for null.String
forgot to add this
2016-02-28 09:53:16 +09:00
Greg
aa8aa51503 fix godoc for IsZero
it had the old behavior from v2
2016-02-28 09:32:36 +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
Gregory Roseberry
404a61efa2 improve godoc 2015-01-21 11:33:38 +09:00
Joel Kek
f5cd2b14cc UnmarshalJSON in null.Bool, null.Float, and null.String now return an error message when asked to unmarshal from an invalid type. This is in line with the behavior of the built-in sql library's null values. 2014-09-09 00:55:40 +08: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
37ad69e8b9 fix godoc 2014-08-31 17:58:34 +09:00
Greg
a0225e0dde tweak godoc 2014-08-31 17:39:31 +09:00
Greg
4ac909cd7c update docs/fix nuller pkg 2014-08-31 17:36:30 +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
3f7515f3d4 fix NewString() 2014-08-29 11:31:09 +09:00
Gregory Roseberry
064b38ec63 update docs 2014-08-29 11:12:48 +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
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
043f53c9b4 initial commit 2014-08-29 00:11:18 +09:00