(s string)
| 447 | } |
| 448 | |
| 449 | func splitHostPort(s string) (host string, port string) { |
| 450 | host, port, _ = net.SplitHostPort(s) |
| 451 | if len(host) == 0 && len(port) == 0 { |
| 452 | host = s |
| 453 | port = "9092" |
| 454 | } |
| 455 | return |
| 456 | } |
| 457 | |
| 458 | func splitHostPortNumber(s string) (host string, portNumber int, err error) { |
| 459 | host, port := splitHostPort(s) |
no outgoing calls
no test coverage detected