code: func BuildConfigEndpointFromOptions(opts ...interface{}) (fab.EndpointConfig, error) {
  	// build a new EndpointConfig with overridden function implementations
  	c := &EndpointConfigOptions{}
  	for i, option := range opts {
  		logger.Debugf("option %d: %#v", i, option)
  		err := setEndpointConfigWithOptionInterface(c, option)
  		if err != nil {
  			return nil, err
  		}
  	}
  
  	return c, nil
  }
docs: // BuildConfigEndpointFromOptions will return an EndpointConfig instance pre-built with Optional interfaces
  // provided in fabsdk's WithEndpointConfig(opts...) call