MCPcopy
hub / github.com/perkeep/perkeep / String

Method String

internal/netutil/ident.go:126–132  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

124type maybeBrackets net.IP
125
126func (p maybeBrackets) String() string {
127 s := net.IP(p).String()
128 if strings.Contains(s, ":") {
129 return "[" + s + "]"
130 }
131 return s
132}
133
134// Changed by tests.
135var uidFromUsername = uidFromUsernameFn

Callers 4

testLocalListenerFunction · 0.45
uidFromSockstatReaderFunction · 0.45
loopbackIPFunction · 0.45

Calls 2

IPMethod · 0.80
ContainsMethod · 0.80

Tested by 2

testLocalListenerFunction · 0.36