aristanetworks / goarista

Fairly general building blocks used in Arista Go code and open-sourced for the benefit of all.
Apache License 2.0
213 stars 68 forks source link

key: add subset checks to key.Map #48

Closed novasharper closed 4 years ago

aaronbee commented 4 years ago

Thank you for the contribution!

This is not something we are looking to add to our Map implementation, but it would be easy to add to a type of your own if need the functionality.

For example:

type SubsetMap struct {
    key.Map
}

func (m* SubsetMap) Subset( ...