MCPcopy Index your code
hub / github.com/riverqueue/river / Keys

Function Keys

rivershared/util/maputil/map_util.go:6–14  ·  view source on GitHub ↗

Keys creates an array of the map keys.

(in map[K]V)

Source from the content-addressed store, hash-verified

4
5// Keys creates an array of the map keys.
6func Keys[K comparable, V any](in map[K]V) []K {
7 result := make([]K, 0, len(in))
8
9 for k := range in {
10 result = append(result, k)
11 }
12
13 return result
14}
15
16// Values creates an array of the map values.
17func Values[K comparable, V any](in map[K]V) []V {

Callers 9

RunSafelyMethod · 0.92
replacerCacheKeyFromFunction · 0.92
StartMethod · 0.92
listenAndWaitMethod · 0.92
TestNotifierFunction · 0.92
GetVersionMethod · 0.92
validateMethod · 0.92
TestKeysFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestNotifierFunction · 0.74
TestKeysFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…