update dependencies (#6267)
Signed-off-by: hongming <coder.scala@gmail.com>
This commit is contained in:
10
vendor/github.com/open-policy-agent/opa/util/maps.go
generated
vendored
Normal file
10
vendor/github.com/open-policy-agent/opa/util/maps.go
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
package util
|
||||
|
||||
// Values returns a slice of values from any map. Copied from golang.org/x/exp/maps.
|
||||
func Values[M ~map[K]V, K comparable, V any](m M) []V {
|
||||
r := make([]V, 0, len(m))
|
||||
for _, v := range m {
|
||||
r = append(r, v)
|
||||
}
|
||||
return r
|
||||
}
|
||||
Reference in New Issue
Block a user