code: func (ccs MetadataSet) AsChaincodes() []*gossip.Chaincode {
  	var res []*gossip.Chaincode
  	for _, cc := range ccs {
  		res = append(res, &gossip.Chaincode{
  			Name:    cc.Name,
  			Version: cc.Version,
  		})
  	}
  	return res
  }
docs: // AsChaincodes converts this MetadataSet to a slice of gossip.Chaincodes