code: func getEndpointInNetwork(name string, n libnetwork.Network) (libnetwork.Endpoint, error) {
  	endpointName := strings.TrimPrefix(name, "/")
  	return n.EndpointByName(endpointName)
  }
docs: // getEndpointInNetwork returns the container's endpoint to the provided network.