Go package simplifies nullable fields handling using Go Generics.
MIT License
Val
is not Valid
(@apatniv #17)driver.Value
supported type where possible (#19)Published by LukaGiorgadze 10 months ago
Published by LukaGiorgadze 10 months ago
Published by LukaGiorgadze 10 months ago
github.com/lomsa-dev/gonull
to github.com/LukaGiorgadze/gonull
Published by LukaGiorgadze about 1 year ago
Published by LukaGiorgadze about 1 year ago
Published by LukaGiorgadze over 1 year ago
Published by LukaGiorgadze over 1 year ago
IsValid
with Valid
Val
into driver.Value
Published by LukaGiorgadze over 1 year ago
Published by LukaGiorgadze over 1 year ago
Published by LukaGiorgadze over 1 year ago
In this release, we're introducing the following features:
Nullable
type for nullable fieldsNullable
with a given value (NewNullable
)sql.Scanner
and driver.Valuer interfacesconvertToType
for type conversionThis package is particularly useful when working with nullable fields in data structures, like database records or JSON data. With this initial release, we hope to simplify handling nullable fields in Go projects.
As this is our first release, we appreciate any feedback or contributions to help improve the gonull
package.
Please don't hesitate to open issues or submit pull requests on our repository.
Thank you for your interest in our project, and we hope you find it useful!