code: func (c *EndpointConfig) ChannelConfig(name string) *fab.ChannelEndpointConfig {
  
  	// get the mapped channel Name
  	mappedChannelName := c.mappedChannelName(c.networkConfig, name)
  	if mappedChannelName == defaultEntity {
  		return c.defaultChannel
  	}
  
  	//look up in network config by channelName
  	ch, ok := c.networkConfig.Channels[strings.ToLower(mappedChannelName)]
  	if !ok {
  		return c.defaultChannel
  	}
  	return &ch
  }
docs: // ChannelConfig returns the channel configuration