Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 508 Bytes

README.md

File metadata and controls

13 lines (9 loc) · 508 Bytes

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