package
3.5.6+incompatible
Repository: https://github.com/mikecongdon1golang/null.git
Documentation: pkg.go.dev
# Functions
BoolFrom creates a new Bool that will be null if false.
BoolFromPtr creates a new Bool that be null if b is nil.
BoolFromPtr creates a new Bool that be null if b is nil.
BoolFromPtr creates a new Bool that be null if b is nil.
FloatFrom creates a new Float that will be null if zero.
FloatFromPtr creates a new Float that be null if f is nil.
IntFrom creates a new Int that will be null if zero.
IntFromPtr creates a new Int that be null if i is nil.
IntFromString creates a new Int from a string.
NewBool creates a new Bool.
NewBoolFromString creates a new Int from a string.
NewFloat creates a new Float.
NewInt creates a new Int.
NewInt creates a new Int from a string and a bool.
NewString creates a new String.
NewTime creates a new Time.
StringFrom creates a new String that will be null if s is blank.
StringFromInt creates a new String from an Int64 that will be null if s is blank.
StringFromPtr creates a new String that be null if s is nil or blank.
TimeFrom creates a new Time that will be null if t is the zero value.
TimeFromPtr creates a new Time that will be null if t is nil or *t is the zero value.
Now returns true for null or zero Times, for potential future omitempty support.