MCPcopy Index your code
hub / github.com/dropbox/godropbox / parseResourceLocation

Function parseResourceLocation

net2/base_connection_pool.go:17–27  ·  view source on GitHub ↗
(resourceLocation string)

Source from the content-addressed store, hash-verified

15}
16
17func parseResourceLocation(resourceLocation string) (
18 network string,
19 address string) {
20
21 idx := strings.Index(resourceLocation, " ")
22 if idx >= 0 {
23 return resourceLocation[:idx], resourceLocation[idx+1:]
24 }
25
26 return "", resourceLocation
27}
28
29// A thin wrapper around the underlying resource pool.
30type connectionPoolImpl struct {

Callers 2

newBaseConnectionPoolFunction · 0.85
ListRegisteredMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected