code: func stripPort(hostport string) string {
  	colon := strings.IndexByte(hostport, ':')
  	if colon == -1 {
  		return hostport
  	}
  	if i := strings.IndexByte(hostport, ']'); i != -1 {
  		return strings.TrimPrefix(hostport[:i], "[")
  	}
  	return hostport[:colon]
  
  }
docs: // stripPort from Go 1.8 because Circle is still on 1.7