MCPcopy Create free account
hub / github.com/Matir/webborer / URLIsSubpath

Function URLIsSubpath

util/utils.go:92–118  ·  view source on GitHub ↗

Determine if one path is a subpath of another path Only considers the host and scheme if they are non-empty in the parent Identical paths are considered subpaths of each other

(parent, child *url.URL)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 4

RunFilterMethod · 0.92
makeScopeFuncFunction · 0.92
TestURLIsSubpathFunction · 0.85
BenchmarkURLIsSubpathFunction · 0.85

Calls 2

LogfFunction · 0.92
StringMethod · 0.45

Tested by 2

TestURLIsSubpathFunction · 0.68
BenchmarkURLIsSubpathFunction · 0.68