MCPcopy
hub / github.com/segmentio/kafka-go / canonicalAddress

Function canonicalAddress

dialer.go:445–447  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

443}
444
445func canonicalAddress(s string) string {
446 return net.JoinHostPort(splitHostPort(s))
447}
448
449func splitHostPort(s string) (host string, port string) {
450 host, port, _ = net.SplitHostPort(s)

Callers 1

makeAddrFunction · 0.85

Calls 1

splitHostPortFunction · 0.85

Tested by

no test coverage detected