code: func ValidateMetadata(meta map[string]string, allowConsulPrefix bool) error {
  	if len(meta) > metaMaxKeyPairs {
  		return fmt.Errorf("Node metadata cannot contain more than %d key/value pairs", metaMaxKeyPairs)
  	}
  
  	for key, value := range meta {
  		if err := validateMetaPair(key, value, allowConsulPrefix); err != nil {
  			return fmt.Errorf("Couldn't load metadata pair ('%s', '%s'): %s", key, value, err)
  		}
  	}
  
  	return nil
  }
docs: // ValidateMeta validates a set of key/value pairs from the agent config