Documentation ¶
Overview ¶
Package conv provides a simple way to convert between types.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToAnySlice ¶
ToAnySlice converts a []T to []any, useful to pass params.
func ToNumberSlice ¶
Convert []any to a typed T if an element has an invalid converstion a zero T will be used
Types ¶
type Numbers ¶
type Numbers interface { constraints.Integer | constraints.Float }
Click to show internal directories.
Click to hide internal directories.