pointer

package
v2.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get[T any](val T) *T

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 GetOrZero

func GetOrZero[T any](ptr *T) T

func GetStringPointerIfNotEmpty

func GetStringPointerIfNotEmpty(input string) *string

func StringToTimePointer

func StringToTimePointer(value string) *time.Time

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL