Files
lo/docs/data/core-entries.md
T
2025-10-06 17:15:49 +02:00

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
core#map#entries
core#map#fromentries
core#map#keys
core#map#values
core#map#toentries
120
func Entries[K comparable, V any](in map[K]V) []Entry[K, V]

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} }