Commit graph

15 commits

Author SHA1 Message Date
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
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
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
Joel Kek
7cccb14361 UnmarshalJSON in Int now returns an error message when asked to unmarshal from an invalid type. This is in line with the behavior of the built-in sql.NullInt64. 2014-09-09 00:52:08 +08:00
Greg
df97727d47 fix godoc 2014-09-02 09:24:56 +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
37ad69e8b9 fix godoc 2014-08-31 17:58:34 +09:00
Greg
b3e13aac8d refactor into 2 packages 2014-08-31 17:28:34 +09:00
Greg
ab8dd4e057 update docs 2014-08-31 00:03:04 +09:00
Greg
9ed047bf7b nullable Int, String improvements 2014-08-30 23:53:25 +09:00