MCPcopy Create free account
hub / github.com/rabbitstack/fibratus / port

Function port

pkg/util/rest/rest_test.go:77–83  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

75}
76
77func port(s string) string {
78 i := strings.LastIndex(s, ":")
79 if i == 0 {
80 return ""
81 }
82 return s[i+1:]
83}

Callers 1

TestGetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected