mirror of
https://github.com/tim-beatham/smegmesh.git
synced 2025-08-14 15:28:36 +02:00
Implemented the forwarding of packets between meshes
This commit is contained in:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user