MCPcopy Create free account
hub / github.com/egonelbre/exp / KeyValues

Function KeyValues

appendstats/main.go:154–160  ·  view source on GitHub ↗
(m map[K]V)

Source from the content-addressed store, hash-verified

152}
153
154func KeyValues[K comparable, V any](m map[K]V) []KV[K, V] {
155 var kvs []KV[K, V]
156 for k, v := range m {
157 kvs = append(kvs, KV[K, V]{Key: k, Value: v})
158 }
159 return kvs
160}
161
162func isAppendName(x ast.Expr) bool {
163 switch x := x.(type) {

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected