code: func detectDeprecatedNetworkConfig(endpointConfig *EndpointConfig) {
  
  	if endpointConfig.networkConfig == nil {
  		return
  	}
  
  	//detect if channels orderers are mentioned
  	for _, v := range endpointConfig.networkConfig.Channels {
  		if len(v.Orderers) > 0 {
  			logger.Warn("Getting orderers from endpoint config channels.orderer is deprecated, use entity matchers to override orderer configuration")
  			logger.Warn("visit https://github.com/hyperledger/fabric-sdk-go/blob/master/test/fixtures/config/overrides/local_entity_matchers.yaml for samples")
  			break
  		}
  	}
  }
docs: //detectDeprecatedConfigOptions detects deprecated config options and prints warnings
  // currently detects: if channels.orderers are defined