Documentation
¶
Index ¶
- func DerefHeaderPtr[E any, T Header[E]](header *T) T
- func MapToPointer[T comparable, U any](value map[T]U) *map[T]U
- func SafeDeRef[T any, U any](value *T, fn func(T) *U) *U
- func SafeToUTC(t *time.Time) *time.Time
- func ToPointer[T any](value T) *T
- func ToStringLike[Source, Dest ~string](value *Source) *Dest
- type Header
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DerefHeaderPtr ¶
Safely dereference a pointer to a slice or map
func MapToPointer ¶
func MapToPointer[T comparable, U any](value map[T]U) *map[T]U
func SafeDeRef ¶
SafeDeRef is a helper function to safely dereference a pointer and apply a function to it.
func ToStringLike ¶
func ToStringLike[Source, Dest ~string](value *Source) *Dest
Types ¶
Click to show internal directories.
Click to hide internal directories.