u, err := url.Parse(addr)
if err == nil && u.Scheme != "" {
  t.endpoints = append(t.endpoints, u.String())
} else {
  // code for SRV lookup
}
```

That doesn't make any assumptions about protocols / URL formats.