Documentation
¶
Overview ¶
Package pathglob matches URL paths against scope globs.
filepath.Match is a file-name matcher: its "*" stops at "/", so the sample config's `/api/*` never excluded `/api/users/1`, and it was handed paths that still carried the query string, so an exclude of `/logout` missed `/logout?next=/`. Scope rules mean URL paths: "*" crosses "/", "**" is a synonym kept for operators who write it, and the query/fragment is never part of the subject.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Match ¶
Match reports whether path matches pattern. "*" (and "**") match any run of characters including "/", "?" matches one character, "[...]" is a character class ("[!...]" negated). Matching is exact (anchored) and case-sensitive; callers lowercase both sides when they want case-insensitivity. An invalid pattern matches nothing.
Types ¶
This section is empty.