Documentation
¶
Overview ¶
Package querypath implements locked path canonicalization for stat and content APIs.
Rules:
- empty or omitted path means the caller-supplied root
- leading "/" is accepted and removed
- ".", "..", empty interior segments, and NUL bytes are rejected
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidQueryPath = errors.New("invalid query path")
ErrInvalidQueryPath identifies malformed client query paths.
Functions ¶
func CanonicalizeQueryPath ¶
CanonicalizeQueryPath normalizes a path from a stat/content query string. The empty string denotes the root. Leading slashes are stripped; internal path semantics are validated but otherwise unchanged.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.