Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Convert ¶
func Convert[T any, R comparable](slice []T, f func(in T) R) []R
Convert accepts a list of T and returns a list of R based on the input func.
func ConvertErr ¶
func ConvertErr[T any, R comparable](slice []T, f func(in T) (R, error)) ([]R, error)
ConvertErr is a variant of Convert that also escapes if there's an error converting the item T into R.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.