package
Version:
v0.0.0-...-984c388
Opens a new window with list of versions in this module.
Published: Mar 7, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func NewCollection[E, T any](src []E, convertFunc ParseFunc[E, T]) []T
NewCollection converts src (slice of type E) to a slice of T.
type ParseFunc[E, T any] func(src E) T
ParseFunc converts E to T.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.