Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToSlice ¶
func ToSlice[T any](in []*T) []T
ToSlice converts a given slice of pointers to slice with non-nil elems.
func ToValue ¶
func ToValue[T Primitives](in *T) T
ToValue returns value for a given pointer input type.
Types ¶
type Primitives ¶
type Primitives interface { constraints.Complex | constraints.Signed | constraints.Unsigned | constraints.Integer | constraints.Float | constraints.Ordered | ~bool }
Primitives is a constraint that permits any primitive Go types.
Click to show internal directories.
Click to hide internal directories.