mirror of
https://github.com/samber/lo.git
synced 2026-04-22 23:47:11 +08:00
564 B
564 B
name, slug, sourceRef, category, subCategory, playUrl, variantHelpers, similarHelpers, position, signatures
| name | slug | sourceRef | category | subCategory | playUrl | variantHelpers | similarHelpers | position | signatures | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Entries | entries | map.go#L179 | core | map | https://go.dev/play/p/_t4Xe34-Nl5 |
|
|
120 |
|
Transforms a map into a slice of key/value pairs.
entries := lo.Entries(map[string]int{"foo": 1, "bar": 2})
// []lo.Entry[string, int]{ {Key: "foo", Value: 1}, {Key: "bar", Value: 2} }