Implemented the forwarding of packets between meshes

This commit is contained in:
Tim Beatham
2023-10-25 18:34:38 +01:00
parent 180f5e226c
commit c205be6748
14 changed files with 241 additions and 33 deletions

View File

@ -25,3 +25,15 @@ func MapValuesWithExclude[K comparable, V any](m map[K]V, exclude map[K]struct{}
return values
}
func MapKeys[K comparable, V any](m map[K]V) []K {
values := make([]K, len(m))
i := 0
for k, _ := range m {
values[i] = k
i++
}
return values
}