gonull

Go package simplifies nullable fields handling using Go Generics.

MIT License

Stars
75
gonull - v1.2.0 Latest Release

Published by LukaGiorgadze 9 months ago

  • Add a method to return default value provided by user if Val is not Valid (@apatniv #17)
  • Add value convertion to driver.Value supported type where possible (#19)
  • Update tests (coverage 100%)
gonull - v1.1.0

Published by LukaGiorgadze 10 months ago

  • Add example (@wazazaby #12 #13 )
  • Added support for internal Valuer and Scanner values (@thenixan #15);
  • Update LICENSE;
gonull - v1.0.1

Published by LukaGiorgadze 10 months ago

gonull - v1.0.0

Published by LukaGiorgadze 10 months ago

gonull - v0.3.2

Published by LukaGiorgadze about 1 year ago

  • Update tests;
  • Update README.
gonull - v0.3.1

Published by LukaGiorgadze about 1 year ago

  • Add tests; coverage 100%
gonull - v0.3.0

Published by LukaGiorgadze over 1 year ago

gonull - v0.2.1

Published by LukaGiorgadze over 1 year ago

  • Change IsValid with Valid
  • Wrap Val into driver.Value
gonull - v0.2.0

Published by LukaGiorgadze over 1 year ago

  • Add badges in README
  • Add test coverage report
  • Fix zeroValue (set default value if err)
  • Minor improvements
  • Update README
gonull - v0.1.5

Published by LukaGiorgadze over 1 year ago

  • Add Comments, change variable names
  • Add Marshall/Unmarshall support
  • Add Tests
  • Update README.md
gonull - v0.1.0

Published by LukaGiorgadze over 1 year ago

v0.1.0 - Initial Release

In this release, we're introducing the following features:

  • Nullable type for nullable fields
  • Functions for creating a new Nullable with a given value (NewNullable)
  • Implementation of the sql.Scanner and driver.Valuer interfaces
  • Helper function convertToType for type conversion

This 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!