Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OrNow ¶
OrNow returns the value of the provided time, if the parameter is non-nil. Otherwise it returns the current time in UTC.
func To ¶
func To[T any](t T) *T
To generates a pointer from any value. Primarily useful for generating pointers to strings and other primitives without needing to store a second variable.
func Val ¶
func Val[T any](ptr *T) T
Val Generic function for dereferencing pointers. Microsoft Graph saves many variables as string pointers. Function will safely check if the point is nil prior to dereferencing the pointer. If the pointer is nil, an empty version of the object is returned. Operation does not work on Nested objects. For example: *evt.GetEnd().GetDateTime() will still cause a panic if evt is nil or GetEnd() is nil
Types ¶
This section is empty.