code: func matchingNamespaces(hostname string, namespaces []*sd.NamespaceSummary) []*sd.NamespaceSummary {
  	matchingNamespaces := make([]*sd.NamespaceSummary, 0)
  
  	for _, ns := range namespaces {
  		if *ns.Name == hostname {
  			matchingNamespaces = append(matchingNamespaces, ns)
  		}
  	}
  
  	return matchingNamespaces
  }
docs: // returns list of all namespaces matching given hostname