(s string)
| 456 | } |
| 457 | |
| 458 | func splitHostPortNumber(s string) (host string, portNumber int, err error) { |
| 459 | host, port := splitHostPort(s) |
| 460 | portNumber, err = strconv.Atoi(port) |
| 461 | if err != nil { |
| 462 | return host, 0, fmt.Errorf("%s: %w", s, err) |
| 463 | } |
| 464 | return host, portNumber, nil |
| 465 | } |
| 466 | |
| 467 | func lookupHost(ctx context.Context, address string, resolver Resolver) (string, error) { |
| 468 | host, port := splitHostPort(address) |
no test coverage detected