README.md

March 11, 2025 ยท View on GitHub

Pointers

  • DefaultIfNil: Returns a default value if the pointer is nil.
  • NullableBool: Returns the value of a boolean pointer or false if nil.
  • NullableTime: Returns the value of a time pointer or a zero time value if nil.
  • NullableInt: Returns the value of an integer pointer or zero if nil.
  • NullableString: Returns the value of a string pointer or an empty string if nil.

Examples:

For examples of each function, please checkout EXAMPLES.md