// extractEndpoint returns the endpoint of the AMQP URL, i.e. everything after @.
extractEndpoint returns the endpoint of the AMQP URL, i.e. everything after @.
// extractEndpoint returns the endpoint of the AMQP URL i . e . everything after @ .
func extractEndpoint(amqpURL string) string {
	i := strings.Index(amqpURL, "://")
	if i < 0 {
		return ""
	}
	path := amqpURL[i+3:]
	j := strings.Index(path, "@")
	if j < 0 {
		return path
	}
	return path[j+1:]
}
func extractEndpoint ( amqpURL string ) string { i := strings . Index ( amqpURL , " " ) if i < 0 { return " " } path := amqpURL [ i + 3 : ] j := strings . Index ( path , " " ) if j < 0 { return path } return path [ j + 1 : ] }
extractEndpoint returns the endpoint of the AMQP URL, i.e.
extractEndpoint returns the endpoint of the AMQP URL i . e .