name, slug, sourceRef, category, subCategory, playUrl, variantHelpers, similarHelpers, position, signatures
| name |
slug |
sourceRef |
category |
subCategory |
playUrl |
variantHelpers |
similarHelpers |
position |
signatures |
| KeyBy |
keyby |
slice.go#L374 |
core |
slice |
https://go.dev/play/p/ccUiUL_Lnel |
|
| core#slice#keybyerr |
| core#slice#groupby |
| core#slice#groupbyerr |
| core#slice#partitionby |
| core#map#associate |
| core#slice#keyify |
|
230 |
| func KeyBy[K comparable, V any](collection []V, iteratee func(item V) K) map[K]V |
|
Transforms a slice to a map using a pivot callback to compute keys.