// mapContainsMap returns true if every element of a map 'sub' is contained in
// a map 'super'
mapContainsMap returns true if every element of a map 'sub' is contained in
a map 'super'
// mapContainsMap returns true if every element of a map ' sub ' is contained in // a map ' super '
func mapContainsMap(super map[string]string, sub map[string]string) bool {
	if len(sub) == 0 || len(super) == 0 {
		return false
	}
	if len(super) < len(sub) {
		return false
	}
	for key, subVal := range sub {
		if superVal, ok := super[key]; ok {
			if superVal != subVal {
				return false
			}
		} else {
			return false
		}
	}
	return true
}
func mapContainsMap ( super map [ string ] string , sub map [ string ] string ) bool { if len ( sub ) == 0 || len ( super ) == 0 { return false } if len ( super ) < len ( sub ) { return false } for key , subVal := range sub { if superVal , ok := super [ key ] ; ok { if superVal != subVal { return false } } else { return false } } return true }
mapContainsMap returns true if every element of a map 'sub' is contained in
a map 'super'
mapContainsMap returns true if every element of a map ' sub ' is contained in a map ' super '