github.com/tufanbarisyildirim/pop@v4.13.1+incompatible/nulls/README.md (about) 1 # github.com/gobuffalo/pop/nulls 2 3 DEPRECATED: use github.com/gobuffalo/nulls instead. 4 5 This package should be used in place of the built-in null types in the `sql` package. 6 7 The real benefit of this packages comes in its implementation of `MarshalJSON` and `UnmarshalJSON` to properly encode/decode `null` values. 8 9 ## Installation 10 11 ``` bash 12 $ go get github.com/gobuffalo/pop/nulls 13 ``` 14 15 ## Supported Datatypes 16 17 * `string` (`nulls.String`) - Replaces `sql.NullString` 18 * `int64` (`nulls.Int64`) - Replaces `sql.NullInt64` 19 * `float64` (`nulls.Float64`) - Replaces `sql.NullFloat64` 20 * `bool` (`nulls.Bool`) - Replaces `sql.NullBool` 21 * `[]byte` (`nulls.ByteSlice`) 22 * `float32` (`nulls.Float32`) 23 * `int` (`nulls.Int`) 24 * `int32` (`nulls.Int32`) 25 * `uint32` (`nulls.UInt32`) 26 * `time.Time` (`nulls.Time`)