Documentation ¶
Index ¶
- func Get[T any](val T) *T
- func GetArrayPointerIfNotEmpty[T any](input []T) *[]T
- func GetNonZeroValue[T constraints.Integer](val T) *T
- func GetOrDefault[T any](ptr *T, defaultValue T) T
- func GetOrZero[T any](ptr *T) T
- func GetStringPointerIfNotEmpty(input string) *string
- func StringToTimePointer(value string) *time.Time
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetArrayPointerIfNotEmpty ¶
func GetArrayPointerIfNotEmpty[T any](input []T) *[]T
func GetNonZeroValue ¶
func GetNonZeroValue[T constraints.Integer](val T) *T
func GetOrDefault ¶
func GetOrDefault[T any](ptr *T, defaultValue T) T
func StringToTimePointer ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.