Alex Grintsvayg
1f26aeeb5c
add dht
2017-08-16 11:52:19 -04:00
Alex Grintsvayg
09745cbdea
init
2017-08-16 11:50:50 -04:00
Alex Grintsvayg
109a79fb20
rename IsZero to IsNull, add it for null.Time
2017-07-06 15:06:31 -04:00
Jason Seriff
40264a2e6b
Remove old github.com references, and update to gopkg.in ones
2016-11-16 13:09:00 +10:00
Aaron L
6ee828f88c
Merge commit 'd5e394a'
2016-11-14 19:12:57 -08:00
jseriff
d5e394aaac
Update import on bool.go
...
Switch import to use "gopkg.in/nullbio/null.v6/convert" instead of non-versioned github import, so that build does not require both versions.
2016-11-14 15:16:17 -06:00
Patrick O'brien
41a31fc048
Fix byte scan
2016-11-12 13:40:11 +10:00
Patrick O
b49443bac4
Update README.md
2016-11-12 11:57:45 +10:00
Patrick O
923466223c
Update for v6
2016-11-12 11:52:19 +10:00
Patrick O'brien
5873ea302b
Fix imports for v6
2016-11-12 11:45:55 +10:00
Patrick O
362c74b04f
Update for v6
2016-11-12 11:40:19 +10:00
Patrick O'brien
50834ac6bc
Add byte type
2016-11-11 17:15:01 +10:00
Patrick O'brien
133b805f06
Rm duplicates of []byte("null"), began byte type
2016-11-11 01:40:50 +10:00
Patrick O'brien
fed49d7096
Fix all unmarshaljson funcs and all types
2016-11-11 01:00:05 +10:00
Patrick O'brien
1104869407
Remove bad comment
2016-11-10 17:58:22 +10:00
Patrick O'brien
dc72f92a47
Removed zero
...
Fix bool, bytes, json
2016-11-10 17:47:49 +10:00
Patrick O'brien
b326f4655b
Update readme to include v5 changes
2016-09-07 23:00:53 +10:00
Patrick O'brien
cdb95c128d
Add zero files, fix some mistakes
2016-09-07 22:24:10 +10:00
Patrick O'brien
70e2c9d0e6
Fix import paths for v5
2016-09-07 21:33:21 +10:00
Patrick O'brien
0087127f1a
Fix unmarshalers/marshalers, add json helpers
2016-09-07 21:17:27 +10:00
Patrick O'brien
f3d5b4769e
Add NullJSON
2016-09-07 03:31:45 +10:00
Patrick O'brien
877f2a1492
Added null.NullBytes
2016-09-07 02:56:31 +10:00
Patrick O'brien
593ba42ffa
Update license and readme
2016-09-04 19:18:51 +10:00
Patrick O'brien
67ba4e0272
Fix README, fix Valuer methods
...
* Fix import paths
2016-06-08 13:53:02 +10:00
Patrick O'brien
4f91fe41ce
Add all additional types to zero package
...
* Add all additional float, int and uint types to zero package
* Moved convert to its own package
* Updated README to reflect changes
2016-05-18 17:00:15 +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
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
79c5bd36b6
fix README
...
whoops
2015-10-24 19:10:46 +09:00
Greg
46376a4a3c
Merge pull request #11 from justinas/master
...
Fix a typo in README
2015-10-21 07:28:36 +09:00
Justinas Stankevicius
eb7618b4e1
Fix a typo
2015-10-21 01:13:05 +03: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
4ac4f00378
MarshalText, UnmarshalText for Time
2015-09-14 05:33:34 +09:00
Greg
e001fb0f0c
Time docs, tweaks, tests
2015-09-14 05:07:53 +09:00
Greg
e6fc057718
Merge pull request #9 from resonance/master
...
Add null.Time and testing
2015-09-14 04:03:55 +09:00
Jed Borovik
50fbbe2bd8
Add zero.Time and tests
2015-09-12 20:30:39 -04:00
Jed Borovik
639d4dad0a
Minor tweaks to null.Time UnmarshalJSON
2015-09-12 18:48:38 -04:00
Jed Borovik
e5f4f566ed
Add unmarshalling null.Time from map[string]interface{}
2015-09-10 13:36:31 -04:00
Jed Borovik
5bebd577e0
Scanning nil for null.Time creates value with Valid = false rather than erroring
2015-09-10 12:49:41 -04:00
Jed Borovik
8112aae462
Make null.Time.Scan more robust by returning an error on the wrong type
2015-09-10 10:56:15 -04: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
Jed Borovik
b9afe213ba
Add null.Time and testing
2015-09-08 17:28:31 -04:00
Gregory Roseberry
41fe781af5
fix govet warnings
2015-01-28 15:15:30 +09:00
Gregory Roseberry
404a61efa2
improve godoc
2015-01-21 11:33:38 +09:00
Gregory Roseberry
68a803260b
overflow and float conversion tests
2014-09-17 10:12:28 +09:00
Greg
49b7edd3ac
Merge pull request #5 from hasryan/issue3_intunmarshal_tests
...
Add tests for non-integer floats being cast to Int silently, and int64 overflows
2014-09-17 10:10:43 +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
Gregory Roseberry
5bc3c32da7
avoid loss of precision in JSON unmarshal
2014-09-17 09:52:39 +09:00
Greg
26b8e82557
Merge pull request #4 from hasryan/issue3_intunmarshal
...
Avoid intermediate float64 storage for int64s during JSON unmarshal
2014-09-17 09:50:23 +09:00
Ryan LaHue
c0d98407b9
Avoid []byte=>float64=>int64 conversion, instead going directly from []byte=>int64, to avoid issues with intermediate float64 representation
2014-09-16 17:43:59 -07:00