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

Function TCP

address.go:9–9  ·  view source on GitHub ↗

TCP constructs an address with the network set to "tcp".

(address ...string)

Source from the content-addressed store, hash-verified

7
8// TCP constructs an address with the network set to "tcp".
9func TCP(address ...string) net.Addr { return makeNetAddr("tcp", address) }
10
11func makeNetAddr(network string, addresses []string) net.Addr {
12 switch len(addresses) {

Calls 1

makeNetAddrFunction · 0.85