mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-06 00:38:08 +08:00
12 lines
189 B
Go
12 lines
189 B
Go
package testutils
|
|
|
|
func SetUnion[T comparable](sets ...map[T]bool) map[T]bool {
|
|
newM := map[T]bool{}
|
|
for _, s := range sets {
|
|
for k, v := range s {
|
|
newM[k] = v
|
|
}
|
|
}
|
|
return newM
|
|
}
|