Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AreAllSet ¶ added in v1.9.0
AreAllSet returns true if all input strings are not nil and not empty.
func FromType ¶ added in v1.9.0
func FromType[T any](in T) *T
FromType returns pointer for a given input type.
func ToSlice ¶ added in v1.9.0
func ToSlice[T any](in []*T) []T
ToSlice converts a given slice of pointers to slice with non-nil elems.
func ToValue ¶ added in v1.9.0
func ToValue[T Primitives](in *T) T
ToValue returns value for a given pointer input type.
Types ¶
type Primitives ¶ added in v1.9.0
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.